Function shift_data_to_front

Source
pub fn shift_data_to_front(
    data: &[u8],
    bits: usize,
    total_bits: usize,
) -> Vec<u8> 
Expand description
  • Shift an array of bits to the front. In a byte, the lower bits are the front bits.