pub(crate) fn read_pow2_code(data: &[u8], idx: u64, bits: u8) -> Option<u32>
Extracts a power-of-two sub-byte code (bits ∈ {1, 2, 4}) at element idx, LSB-first.
bits
idx