Expand description
Bitstream packer/unpacker for arbitrary bit widths (1-8).
Uses a 64-bit accumulator for sub-byte codes with no alignment padding.
Functionsยง
- pack
- Pack unsigned codes of
bitswidth into a byte stream. - qmax_
from_ bits - Compute qmax for a given bit width:
2^(bits-1) - 1. - unpack
- Unpack
countunsigned codes ofbitswidth from a byte stream.