fn read_bits( count: u64, code_bits: &mut u64, code_bit_count: &mut u64, input: &mut impl Read, ) -> Result<u64>