fn readAll(s: Stream, buffer: []u8) ReadError!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

s: Stream,
buffer: []u8,