• Home
  • Raw
  • Download

Lines Matching refs:reader

36 ALWAYS_INLINE static bool DecodeTable(BitTable<Accessor>& table, BitMemoryReader& reader) {  in DecodeTable()  argument
37 bool is_deduped = reader.ReadBit(); in DecodeTable()
39 ssize_t bit_offset = reader.NumberOfReadBits() - reader.ReadVarint(); in DecodeTable()
40 BitMemoryReader reader2(reader.data(), bit_offset); // The offset is negative. in DecodeTable()
43 table.Decode(reader); in DecodeTable()
49 BitMemoryReader reader(data); in Decode() local
50 ForEachHeaderField([this, &reader](auto member_pointer) { in Decode()
51 this->*member_pointer = reader.ReadVarint(); in Decode()
53 ForEachBitTableField([this, &reader](auto member_pointer) { in Decode()
54 DecodeTable(this->*member_pointer, reader); in Decode()
56 size_in_bits_ = reader.NumberOfReadBits(); in Decode()
62 BitMemoryReader reader(code_info_data); in Dedupe() local
64 ForEachHeaderField([this, &reader, &code_info](auto member_pointer) { in Dedupe()
65 code_info.*member_pointer = reader.ReadVarint(); in Dedupe()
68 ForEachBitTableField([this, &reader, &code_info](auto member_pointer) { in Dedupe()
69 bool is_deduped = reader.ReadBit(); in Dedupe()
71 size_t bit_table_start = reader.NumberOfReadBits(); in Dedupe()
72 (code_info.*member_pointer).Decode(reader); in Dedupe()
73 BitMemoryRegion region = reader.GetReadRegion().Subregion(bit_table_start); in Dedupe()
187 BitMemoryReader reader(code_info_data); in CollectSizeStats() local
188 ForEachHeaderField([&reader](auto) { reader.ReadVarint(); }); in CollectSizeStats()
189 codeinfo_stats->Child("Header")->AddBits(reader.NumberOfReadBits()); in CollectSizeStats()
191 ForEachBitTableField([codeinfo_stats, &reader, &code_info](auto member_pointer) { in CollectSizeStats()
193 size_t bit_offset = reader.NumberOfReadBits(); in CollectSizeStats()
194 bool deduped = DecodeTable(table, reader); in CollectSizeStats()
196 codeinfo_stats->Child("DedupeOffset")->AddBits(reader.NumberOfReadBits() - bit_offset); in CollectSizeStats()
199 table_stats->AddBits(reader.NumberOfReadBits() - bit_offset); in CollectSizeStats()
209 codeinfo_stats->AddBytes(BitsToBytesRoundUp(reader.NumberOfReadBits())); in CollectSizeStats()