Skip to main content

Module bitpack

Module bitpack 

Source
Available on crate feature bit-packing only.
Expand description

Bit-level caller-buffer codecs and the BitPack contract.

Structs§

BitPackedConfig
Configuration for BitPack values.
BitReader
Bit-level reader matching BitWriter.
BitWriter
Bit-level output over caller-owned memory, least-significant bit first.

Traits§

BitPack
Generated or handwritten bit-packed representation.
BitValue
Conversion contract for fields with an explicit #[bits = N] width.

Functions§

bytes_for_bits
Returns the minimum byte capacity required to store bits bits.