Lines Matching refs:ReadBits
244 buffer[index++] = br->ReadBits(5); // HLIST in BuildDynamicHuffmanTable()
245 auto num_lit_len = br->ReadBits(5) + 257; in BuildDynamicHuffmanTable()
248 buffer[index++] = br->ReadBits(5); // HDIST in BuildDynamicHuffmanTable()
249 auto num_distance = br->ReadBits(5) + 1; in BuildDynamicHuffmanTable()
252 buffer[index++] = br->ReadBits(4); // HCLEN in BuildDynamicHuffmanTable()
253 auto num_codes = br->ReadBits(4) + 4; in BuildDynamicHuffmanTable()
265 code_lens_[kPermutations[idx]] = br->ReadBits(3); in BuildDynamicHuffmanTable()
267 buffer[index++] |= br->ReadBits(3); in BuildDynamicHuffmanTable()
269 buffer[index] = br->ReadBits(3) << 4; in BuildDynamicHuffmanTable()
323 auto bits = br->ReadBits(max_bits); in BuildHuffmanCodeLengths()
341 copy_num = 3 + br->ReadBits(2); in BuildHuffmanCodeLengths()
342 buffer[index++] = 16 + br->ReadBits(2); // 3 - 6 times in BuildHuffmanCodeLengths()
349 copy_num = 3 + br->ReadBits(3); in BuildHuffmanCodeLengths()
350 buffer[index++] = 20 + br->ReadBits(3); // 3 - 10 times in BuildHuffmanCodeLengths()
357 copy_num = 11 + br->ReadBits(7); in BuildHuffmanCodeLengths()
358 buffer[index++] = 28 + br->ReadBits(7); // 11 - 138 times in BuildHuffmanCodeLengths()