pub fn read_len_bits<R: Read>(r: &mut Reader<R>) -> io::Result<usize> {
    let len_bits = match r.read_unsigned(2)? {
        0 => 5,
        1 => 8,
        2 => 10,
        3 => 16,
        _ => unreachable!(),
    };
    Ok(r.read_unsigned(len_bits)? as usize)
}
/// Helper to read a dynamic length prefix
Helper to read a dynamic length prefix
Helper to read a dynamic length prefix
pub fn read_len_bits<R: Read>(r: &mut Reader<R>) -> io::Result<usize> {
    let len_bits = match r.read_unsigned(2)? {
        0 => 5,
        1 => 8,
        2 => 10,
        3 => 16,
        _ => unreachable!(),
    };
    Ok(r.read_unsigned(len_bits)? as usize)
}
pub fn read_len_bits < R : Read > ( r : & mut Reader < R > ) -> io :: Result < usize > { let len_bits = match r . read_unsigned ( 2 ) ? { 0 => 5 , 1 => 8 , 2 => 10 , 3 => 16 , _ => unreachable ! ( ) , } ; Ok ( r . read_unsigned ( len_bits ) ? as usize ) }
Helper to read a dynamic length prefix
Helper to read a dynamic length prefix
r
&mut Reader<R>