nghttp3_qpack_decoder_read_encoder

Synopsis

#include <nghttp3/nghttp3.h>

nghttp3_ssize nghttp3_qpack_decoder_read_encoder(nghttp3_qpack_decoder *decoder, const uint8_t *src, size_t srclen)

nghttp3_qpack_decoder_read_encoder() reads encoder stream. The buffer pointed by src of length srclen contains encoder stream.

This function returns the number of bytes read, or one of the following negative error codes:

NGHTTP3_ERR_NOMEM

Out of memory.

NGHTTP3_ERR_QPACK_FATAL

decoder is in unrecoverable error state, and cannot be used anymore.

NGHTTP3_ERR_QPACK_ENCODER_STREAM

Could not interpret encoder stream instruction.