fn readUntilDelimiterOrEof(self: Self, buf: []u8, delimiter: u8) !?[]u8

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, returns the rest of the stream. If this function is called again after that, returns null. 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.

Parameters

self: Self,
buf: []u8,
delimiter: u8,