Returns a slice of the next bytes of buffered data from the stream until
sentinel is found, advancing the seek position past the sentinel.
Returned slice has a sentinel.
Invalidates previously returned values from peek.
See also:
peekSentineltakeDelimiterExclusivetakeDelimiterInclusivepub fn takeSentinel(r: *Reader, comptime sentinel: u8) DelimiterError![:sentinel]u8
pub fn takeSentinel(r: *Reader, comptime sentinel: u8) DelimiterError![:sentinel]u8 {
const result = try r.peekSentinel(sentinel);
r.toss(result.len + 1);
return result;
}