Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

streamExact64

"Pump" exactly n bytes from the reader to the writer.

Reader.streamExact64
pub fn streamExact64(r: *Reader, w: *Writer, n: u64) StreamError!void

File

lib/std/Io/Reader.zig:222

Code

pub fn streamExact64(r: *Reader, w: *Writer, n: u64) StreamError!void {
    var remaining = n;
    while (remaining != 0) remaining -= try r.stream(w, .limited64(remaining));
}