LiteSpeed QUIC Library
Data Fields
lsquic_reader Struct Reference

#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
 

Detailed Description

Used as argument to lsquic_stream_writef()

Field Documentation

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.


The documentation for this struct was generated from the following file: