Function read [src]
Receives TLS-encrypted data from stream, which must conform to StreamInterface.
Prototype
pub fn read(c: *Client, stream: anytype, buffer: []u8) !usize
Parameters
c: *Client
buffer: []u8
Source
pub fn read(c: *Client, stream: anytype, buffer: []u8) !usize {
return readAtLeast(c, stream, buffer, 1);
}