Skip to main content

Module codec

Module codec 

Source
Expand description

Typed entropy-channel descriptor: the canonical, self-describing wire form of a single rANS channel capsule.

A channel is never a bare seed. It carries the coder identity, the model it consumes, the decoder initial state, the renormalization payload, and the exact symbol/decoded counts. encode and decode are exact inverses; decoding validates every field and never panics on hostile input.

Structs§

EntropyChannelDescriptor
A complete decoder-entry descriptor for one entropy channel.

Constants§

CODER_ORDER0_BYTE_RANS
Coder selector: single-lane order-0 byte rANS.
CODER_VERSION_1
Coder wire version for CODER_ORDER0_BYTE_RANS.
WIRE_HEADER_LEN
Fixed bytes preceding the payload in the wire encoding.