pub fn streamExact(r: *Reader, w: *Writer, n: usize) 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.
216
217
218
219pub fn streamExact(r: *Reader, w: *Writer, n: usize) StreamError!void {
var remaining = n;
while (remaining != 0) remaining -= try r.stream(w, .limited(remaining));
}
"Pump" exactly
nbytes from the reader to the writer.