Function readAll [src]
Receives TLS-encrypted data from stream, which must conform to StreamInterface.
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 the
stream is not an error condition.
Prototype
pub fn readAll(c: *Client, stream: anytype, buffer: []u8) !usize
Parameters
c: *Client
buffer: []u8
Source
pub fn readAll(c: *Client, stream: anytype, buffer: []u8) !usize {
return readAtLeast(c, stream, buffer, buffer.len);
}