Function readv [src]
Receives TLS-encrypted data from stream, which must conform to StreamInterface.
Returns the number of bytes read. If the number read is less than the space
provided it means the stream reached the end. Reaching the end of the
stream is not an error condition.
The iovecs parameter is mutable because this function needs to mutate the fields in
order to handle partial reads from the underlying stream layer.
Prototype
pub fn readv(c: *Client, stream: anytype, iovecs: []std.posix.iovec) !usize
Parameters
c: *Client
iovecs: []std.posix.iovec
Source
pub fn readv(c: *Client, stream: anytype, iovecs: []std.posix.iovec) !usize {
return readvAtLeast(c, stream, iovecs, 1);
}