Encodes a QUIC variable-length integer using the shortest prefix size that can hold the value, as required for canonical Marmot encoding.
A non-negative integer in [0, MAX_VARINT].
[0, MAX_VARINT]
Encodes a QUIC variable-length integer using the shortest prefix size that can hold the value, as required for canonical Marmot encoding.