Expand description
rANS stream types — RansEncoderStream / RansDecoderStream.
§rANS stream types
Standalone RansEncoderStream and RansDecoderStream matching
Microsoft’s RansEncoderStream / RansDecoderStream from
EntropyCoder.h.
- Encoder stream keeps a persistent raw encoder state across
push()calls (matching Microsoft’sRawRansEncoderStream), flushing once at the end. - Decoder stream owns the encoded data and advances a persistent
decoder across sequential
decodecalls.
Both types are generic over the rANS variant (RansByte or Rans64),
making variant mismatches a compile-time error.
Structs§
- Rans
Decoder Stream - rANS decoder stream for a specific variant
S. - Rans
Encoder Stream - rANS encoder stream for a specific variant
S.
Enums§
- Rans
Variant - rANS variants for runtime dispatch (Python-facing).
Functions§
- units_
to_ le_ bytes - Convert u32 units to little-endian bytes.