nghttp3_qpack_decoder_new

Synopsis

#include <nghttp3/nghttp3.h>

int nghttp3_qpack_decoder_new(nghttp3_qpack_decoder **pdecoder, size_t hard_max_dtable_capacity, size_t max_blocked_streams, const nghttp3_mem *mem)

nghttp3_qpack_decoder_new() initializes QPACK decoder. pdecoder must be non-NULL pointer. hard_max_dtable_capacity is the upper bound of the dynamic table capacity. max_blocked_streams is the maximum number of streams which can be blocked. mem is a memory allocator. This function allocates memory for nghttp3_qpack_decoder itself, and assigns its pointer to *pdecoder if it succeeds.

This function returns 0 if it succeeds, or one of the following negative error codes:

NGHTTP3_ERR_NOMEM

Out of memory.