quic_qpack_prefix (quic v1.4.3)

View Source

Encoded Field Section Prefix reconstruction for QPACK (RFC 9204 Section 4.5.1): rebuild the Required Insert Count and Base from the wire.

Summary

Functions

Reconstruct the Base from the field section prefix Sign bit and Delta Base (RFC 9204 Section 4.5.1.2). With Sign bit 0 the Base is at or above the Required Insert Count and equals ReqInsertCount + DeltaBase. With Sign bit 1 the Base is below it and equals ReqInsertCount - DeltaBase - 1.

Reconstruct the Required Insert Count from its encoded value using the modulo scheme of RFC 9204 Section 4.5.1.1. MaxEntries` is the tables maximum entry count and TotalInsertCount` the decoders current insert count.

Functions

decode_base(_, RIC, DeltaBase)

-spec decode_base(0 | 1, non_neg_integer(), non_neg_integer()) -> integer().

Reconstruct the Base from the field section prefix Sign bit and Delta Base (RFC 9204 Section 4.5.1.2). With Sign bit 0 the Base is at or above the Required Insert Count and equals ReqInsertCount + DeltaBase. With Sign bit 1 the Base is below it and equals ReqInsertCount - DeltaBase - 1.

decode_ric(ERIC, MaxEntries, TotalInsertCount)

Reconstruct the Required Insert Count from its encoded value using the modulo scheme of RFC 9204 Section 4.5.1.1. MaxEntries` is the tables maximum entry count and TotalInsertCount` the decoders current insert count.