pub fn streamExact64(r: *Reader, w: *Writer, n: u64) StreamError!void ReadFailedSee the Reader implementation for detailed diagnostics.
WriteFailedSee the Writer implementation for detailed diagnostics.
EndOfStreamEnd of stream indicated from the Reader. This error cannot originate from the Writer.
222
223
224
225pub fn streamExact64(r: *Reader, w: *Writer, n: u64) StreamError!void {
var remaining = n;
while (remaining != 0) remaining -= try r.stream(w, .limited64(remaining));
}
"Pump" exactly
nbytes from the reader to the writer.