fn truncate_bit_sequence(bit_sequence: &mut Vec<u8>, length: usize)Expand description
Given a byte sequence containing a bit sequence, truncate the bit sequence, keeping the first
length bits.
If length is greater or equal to bit_sequqnce.len() * 8, this function has no effect.