QpackInteger class
QPACK integer encoder/decoder per RFC 9204 Section 4.1.
QPACK reuses the HPACK integer representation from RFC 7541. An integer
is encoded into the lower prefixBits of the first byte; the remaining
upper bits of that byte are reserved for the enclosing instruction and are
left as zero by these helpers. Callers must OR in the instruction bits
before transmission.
prefixBits = 1..8 prefixLimit = 2^prefixBits - 1 If value < prefixLimit: encode in one byte. Else: first byte = prefixLimit, then encode remainder with 7-bit continuation (MSB = 1 for more bytes, 0 for last).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited