pub fn takeDelimiterInclusive(r: *Reader, delimiter: u8) DelimiterError![]u8 r: *Readerdelimiter: u8ReadFailedSee the Reader implementation for detailed diagnostics.
EndOfStreamFor "inclusive" functions, stream ended before the delimiter was found. For "exclusive" functions, stream ended and there are no more bytes to return.
StreamTooLongThe delimiter was not found within a number of bytes matching the capacity of the Reader.
806
807
808
809
810pub fn takeDelimiterInclusive(r: *Reader, delimiter: u8) DelimiterError![]u8 {
const result = try r.peekDelimiterInclusive(delimiter);
r.toss(result.len);
return result;
}
Returns a slice of the next bytes of buffered data from the stream until
delimiteris found, advancing the seek position past the delimiter.Returned slice includes the delimiter as the last byte.
Invalidates previously returned values from
peek.See also:
takeSentineltakeDelimiterExclusivepeekDelimiterInclusive