pub fn pack_nbits(values: &[u8], bits_per_value: u8) -> Vec<u8> ⓘ
Pack N-bit values (1-8 bits per value).