fn readUntilDelimiterOrEofAlloc(self: Self, allocator: mem.Allocator, delimiter: u8, max_size: usize) !?[]u8

Deprecated: use streamUntilDelimiter with ArrayList’s (or any other’s) writer instead. Allocates enough memory to read until delimiter or end-of-stream. If the allocated memory would be greater than max_size, returns error.StreamTooLong. If end-of-stream is found, returns the rest of the stream. If this function is called again after that, returns null. Caller owns returned memory. If this function returns an error, the contents from the stream read so far are lost.

Parameters

self: Self,
allocator: mem.Allocator,
delimiter: u8,
max_size: usize,