pub fn pack_bitmask(bitmask: &[u8]) -> Vec<u8> ⓘ
Pack a bitmask array (one byte per bit, 0 or 1) into packed bytes (LSB first).