Expand description
§Codecs Module
This module provides implementations of various variable-length codes, such as minimal binary, gamma, delta, Exp‑Golomb, Zeta, Rice, and their parameterized variants. These codecs facilitate encoding and decoding unsigned 64-bit integers at the bit level, parameterized by an endianness marker and custom bit read/write implementations.
§Codecs Overview
Refer to the codes
module of dsi-bitstream for more information on their implementation.
Structs§
- Delta
Codec - DeltaCodec: no extra runtime parameter.
- ExpGolomb
Codec - Exp‑Golomb Codec: requires a runtime parameter (e.g. k).
- Gamma
Codec - GammaCodec: no extra runtime parameter.
- Minimal
Binary Codec - MinimalBinaryCodec: uses an upper bound as a runtime parameter.
- Param
Delta Codec - ParamDeltaCodec: uses compile‑time booleans for table usage.
- Param
Gamma Codec - ParamGammaCodec: uses a compile‑time flag for table usage in gamma coding. For more information refer to the
Gamma
module. - Param
Zeta Codec - ParamZetaCodec: uses a compile‑time flag for ζ functions.
- Rice
Codec - RiceCodec: uses the Rice functions with a runtime parameter (log2_b).
- Zeta
Codec - ZetaCodec: uses runtime parameter (k) with non‑parametric ζ functions.
Traits§
- Codec
- Trait for encoding and decoding values using a variable-length code.