fn streamUntilDelimiter(self: Self, writer: anytype, delimiter: u8, optional_max_size: ?usize) Error || error{EndOfStream, StreamTooLong} || @TypeOf(writer).Error!void
[src]
Appends to the writer
contents by reading from the stream until delimiter
is found. Does not write the delimiter itself. If optional_max_size
is not null and amount of written bytes exceeds optional_max_size
, returns error.StreamTooLong
and finishes appending. If optional_max_size
is null, appending is unbounded.