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