Skip to main content

bits_to_bytes

Function bits_to_bytes 

Source
pub fn bits_to_bytes(bits: &[u8]) -> Vec<u8> 
Expand description

Packs a bit slice (MSB-first per byte) back into bytes. The bit count must be a multiple of 8.