pub fn take(r: *Reader, n: usize) Error![]u8
Equivalent to peek followed by toss.
peek
toss
The data returned is invalidated by the next call to take, peek, fill, and functions with those prefixes.
take
fill
r: *Reader
n: usize
ReadFailed
See the Reader implementation for detailed diagnostics.
Reader
EndOfStream
563 564 565 566 567
pub fn take(r: *Reader, n: usize) Error![]u8 { const result = try r.peek(n); r.toss(n); return result; }
Equivalent to
peekfollowed bytoss.The data returned is invalidated by the next call to
take,peek,fill, and functions with those prefixes.