nghttp3_put_uvarint

Synopsis

#include <nghttp3/nghttp3.h>

uint8_t *nghttp3_put_uvarint(uint8_t *p, uint64_t n)

nghttp3_put_uvarint() writes n to the buffer pointed by p using variable-length unsigned integer encoding. It returns the one beyond of the last written position. This function assumes that the buffer pointed by p has sufficient capacity to encode n. To know the required capacity, use nghttp3_put_uvarintlen(). n must be less than or equal to (1 << 62) - 1.

Added in version 1.17.0.