bytes_to_bits

Function bytes_to_bits 

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

Expands bytes into MSB-first bits.

Parameters:

  • bytes: input bytes. Returns:
  • Vec<u8>: bit vector with values in {0,1}.