pub fn bits_to_bytes(bits: &[u8]) -> Vec<u8> ⓘ
Packs a bit slice (MSB-first per byte) back into bytes. The bit count must be a multiple of 8.