DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
quic_varint.h File Reference

QUIC variable-length integer coding (RFC 9000 sec 16). More...

#include "ServerConfig.h"

Go to the source code of this file.

Detailed Description

QUIC variable-length integer coding (RFC 9000 sec 16).

QUIC, HTTP/3 (RFC 9114), and QPACK (RFC 9204) encode most lengths and identifiers as a variable-length integer: the two most-significant bits of the first byte give the total length (00 -> 1 byte / 6-bit value, 01 -> 2 / 14-bit, 10 -> 4 / 30-bit, 11 -> 8 / 62-bit), and the remaining bits hold the value big-endian. The representable range is 0 .. 2^62-1.

This is the foundational primitive of the HTTP/3 stack. Pure and host-tested.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file quic_varint.h.