LiteSpeed QUIC Library
|
#include <lsquic.h>
Data Fields | |
size_t(* | lsqr_read )(void *lsqr_ctx, void *buf, size_t count) |
size_t(* | lsqr_size )(void *lsqr_ctx) |
void * | lsqr_ctx |
Used as argument to lsquic_stream_writef()
size_t(* lsquic_reader::lsqr_read) (void *lsqr_ctx, void *buf, size_t count) |
Not a ssize_t because the read function is not supposed to return an error. If an error occurs in the read function (for example, when reading from a file fails), it is supposed to deal with the error itself.
size_t(* lsquic_reader::lsqr_size) (void *lsqr_ctx) |
Return number of bytes remaining in the reader.