pub fn bits_to_bytes(bits: &[u8]) -> Vec<u8> ⓘ
Packs MSB-first bits into bytes (truncates incomplete trailing byte).
Parameters:
bits
0/1
Vec<u8>