transforms
ptwm_core::transforms::index_pack
IndexBitwidthPack op — packs u8 indices into a tight MSB-first bit stream.
ptwm_core::transforms::index_pack
IndexBitwidthPack op — packs u8 indices into a tight MSB-first bit stream.
ptwm_core::transforms::index_pack
crates/ptwm-core/src/transforms/index_pack.rs:1mod index_pack`IndexBitwidthPack` op — packs u8 indices into a tight MSB-first bit stream.
ptwm_core::transforms::index_pack::IndexBitwidthPack
crates/ptwm-core/src/transforms/index_pack.rs:56pub struct IndexBitwidthPack`IndexBitwidthPack` packs a stream of u8 indices (each ∈ `0..2^bits`) into a tight bit stream, MSB-first within each output byte. Used downstream of codebook ops to recover the bit budget the codebook earned.
Stores `bits: u8` (must satisfy `1 ≤ bits ≤ 8`).
ptwm_core::transforms::index_pack::read_index_pack_params
crates/ptwm-core/src/transforms/index_pack.rs:182pub fn read_index_pack_params(buf: &[u8]) -> Result<(IndexBitwidthPack, usize), PtwmCoreError>Parse `IndexBitwidthPack` params from a raw byte buffer.