nghttp3_qpack_encoder_read_decoder

Synopsis

#include <nghttp3/nghttp3.h>

nghttp3_ssize nghttp3_qpack_encoder_read_decoder(nghttp3_qpack_encoder *encoder, const uint8_t *src, size_t srclen)

nghttp3_qpack_encoder_read_decoder() reads decoder stream. The buffer pointed by src of length srclen contains decoder 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

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

NGHTTP3_ERR_QPACK_DECODER_STREAM

encoder is unable to process input because it is malformed.