Searched refs:read_bit (Results 1 – 2 of 2) sorted by relevance
166 auto read_bit = [&bit_reader](bool* bit) { in TEST() local172 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()175 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()178 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()181 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()184 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()187 ASSERT_FALSE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()195 auto read_bit = [&bit_reader](bool* bit) { in TEST() local201 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()204 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()[all …]
160 bool DecodeFromStream(const std::function<bool(bool*)>& read_bit, Val* val) { in DecodeFromStream() argument171 if (!read_bit(&go_right)) in DecodeFromStream()