nghttp3_get_uvarint

Synopsis

#include <nghttp3/nghttp3.h>

const uint8_t *nghttp3_get_uvarint(uint64_t *dest, const uint8_t *p)

nghttp3_get_uvarint() reads variable-length unsigned integer from the buffer pointed by p, and stores it in the object pointed by dest in host byte order. It returns p plus the number of bytes read from p. This function assumes that p points to the buffer that contains a valid variable-length unsigned integer. Use nghttp3_get_uvarintlen() to get the number of bytes to successfully decode an integer.

Added in version 1.17.0.