rustls_connection_read

Read up to count plaintext bytes from the rustls_connection into buf. On success, store the number of bytes read in *out_n (this may be less than count). A success with *out_n set to 0 means "all bytes currently available have been read, but more bytes may become available after subsequent calls to rustls_connection_read_tls and rustls_connection_process_new_packets."

Subtle note: Even though this function only writes to buf and does not read from it, the memory in buf must be initialized before the call (for Rust-internal reasons). Initializing a buffer once and then using it multiple times without zeroizing before each call is fine. <https://docs.rs/rustls/0.20.0/rustls/struct.Reader.html#method.read>

extern (C)
rustls_connection_read
(,
ubyte* buf
,
size_t count
,
size_t* out_n
)

Meta