Deprecated: use streamUntilDelimiter
with FixedBufferStream’s writer instead. Reads from the stream until specified byte is found. If the buffer is not large enough to hold the entire contents, error.StreamTooLong
is returned. If end-of-stream is found, error.EndOfStream
is returned. Returns a slice of the stream data, with ptr equal to buf.ptr
. The delimiter byte is written to the output buffer but is not included in the returned slice.