fn readAll(self: Self, buffer: []u8) Error!usize

Returns the number of bytes read. If the number read is smaller than buffer.len, it means the stream reached the end. Reaching the end of a stream is not an error condition.

Parameters

self: Self,
buffer: []u8,