Function discardAll64 [src]
Prototype
pub fn discardAll64(r: *Reader, n: u64) Error!void
Parameters
r: *Reader
n: u64
Possible Errors
See the Reader
implementation for detailed diagnostics.
Source
pub fn discardAll64(r: *Reader, n: u64) Error!void {
var remaining: u64 = n;
while (remaining > 0) {
const limited_remaining = std.math.cast(usize, remaining) orelse std.math.maxInt(usize);
try discardAll(r, limited_remaining);
remaining -= limited_remaining;
}
}