pub fn read_code(packed: &[u8], i: usize, nbits: u32) -> u8
Read the code at logical position i from a packed buffer.
i