Searched refs:read_n_bits (Results 1 – 3 of 3) sorted by relevance
217 if self.bits_reader.read_n_bits(1)? > 0 { in celp_specific_config_load()219 self.bits_reader.read_n_bits(1)?; in celp_specific_config_load()220 self.bits_reader.read_n_bits(1)?; in celp_specific_config_load()223 self.bits_reader.read_n_bits(3)?; in celp_specific_config_load()225 self.bits_reader.read_n_bits(5)?; in celp_specific_config_load()230 self.bits_reader.read_n_bits(1)?; in celp_specific_config_load()231 self.bits_reader.read_n_bits(2)?; in celp_specific_config_load()243 self.bits_reader.read_n_bits(1)?; in ga_specific_config_load()246 self.bits_reader.read_n_bits(14)?; in ga_specific_config_load()255 self.bits_reader.read_n_bits(3)?; in ga_specific_config_load()[all …]
21 let code_num = (1 << leading_zeros_bits) - 1 + bit_reader.read_n_bits(leading_zeros_bits)?; in read_uev()67 bits_reader.read_n_bits(7).unwrap(); in test_read_uev()72 bits_reader.read_n_bits(5).unwrap(); in test_read_uev()77 bits_reader.read_n_bits(5).unwrap(); in test_read_uev()82 bits_reader.read_n_bits(3).unwrap(); in test_read_uev()87 bits_reader.read_n_bits(3).unwrap(); in test_read_uev()92 bits_reader.read_n_bits(3).unwrap(); in test_read_uev()97 bits_reader.read_n_bits(3).unwrap(); in test_read_uev()102 bits_reader.read_n_bits(1).unwrap(); in test_read_uev()107 bits_reader.read_n_bits(1).unwrap(); in test_read_uev()
54 pub fn read_n_bits(&mut self, n: usize) -> Result<u64, BitError> { in read_n_bits() method118 assert!(bit_reader.read_n_bits(16).unwrap() == 0x207); in test_read_n_bits()120 assert!(bit_reader.read_n_bits(5).unwrap() == 0); in test_read_n_bits()122 assert!(bit_reader.read_n_bits(3).unwrap() == 2); in test_read_n_bits()