nghttp3_get_varint
Synopsis
#include <nghttp3/nghttp3.h>
-
const uint8_t *nghttp3_get_varint(int64_t *dest, const uint8_t *p)
nghttp3_get_varint()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. Usenghttp3_get_uvarintlen()to get the number of bytes to successfully decode an integer.Added in version 1.17.0.