Function streamExact [src]
"Pump" exactly n bytes from the reader to the writer.
Prototype
pub fn streamExact(r: *Reader, w: *Writer, n: usize) StreamError!void
Parameters
r: *Reader
w: *Writer
n: usize
Possible Errors
Source
pub fn streamExact(r: *Reader, w: *Writer, n: usize) StreamError!void {
var remaining = n;
while (remaining != 0) remaining -= try r.stream(w, .limited(remaining));
}