Home | History | Annotate | Download | only in Support

Lines Matching refs:offset_type

42 ///   typedef uint32_t offset_type; // The type for offsets into the table.
47 /// static std::pair<offset_type, offset_type>
51 /// offset_type KeyLen);
54 /// data_type_ref Data, offset_type DataLen);
73 typedef typename Info::offset_type offset_type;
74 offset_type NumBuckets;
75 offset_type NumEntries;
80 offset_type Off;
142 offset_type Emit(raw_ostream &Out) {
150 offset_type Emit(raw_ostream &Out, Info &InfoObj) {
171 for (offset_type I = 0; I < NumBuckets; ++I) {
187 const std::pair<offset_type, offset_type> &Len =
200 assert(offset_type(DataStart - KeyStart) == Len.first &&
202 assert(offset_type(End - DataStart) == Len.second &&
209 offset_type TableOff = Out.tell();
210 uint64_t N = llvm::OffsetToAlignment(TableOff, alignof(offset_type));
216 LE.write<offset_type>(NumBuckets);
217 LE.write<offset_type>(NumEntries);
218 for (offset_type I = 0; I < NumBuckets; ++I)
219 LE.write<offset_type>(Buckets[I].Off);
248 /// typedef uint32_t offset_type; // The type for offsets into the table.
261 /// static std::pair<offset_type, offset_type>
266 /// offset_type KeyLen);
270 /// offset_type DataLen);
274 const typename Info::offset_type NumBuckets;
275 const typename Info::offset_type NumEntries;
286 typedef typename Info::offset_type offset_type;
288 OnDiskChainedHashTable(offset_type NumBuckets, offset_type NumEntries,
301 static std::pair<offset_type, offset_type>
306 offset_type NumBuckets =
307 endian::readNext<offset_type, little, aligned>(Buckets);
308 offset_type NumEntries =
309 endian::readNext<offset_type, little, aligned>(Buckets);
313 offset_type getNumBuckets() const { return NumBuckets; }
314 offset_type getNumEntries() const { return NumEntries; }
323 const offset_type Len;
328 iterator(const internal_key_type K, const unsigned char *D, offset_type L,
335 offset_type getDataLen() const { return Len; }
357 offset_type Idx = KeyHash & (NumBuckets - 1);
358 const unsigned char *Bucket = Buckets + sizeof(offset_type) * Idx;
360 offset_type Offset = endian::readNext<offset_type, little, aligned>(Bucket);
375 const std::pair<offset_type, offset_type> &L =
377 offset_type ItemLen = L.first + L.second;
439 typedef typename base_type::offset_type offset_type;
445 offset_type NumItemsInBucketLeft;
446 offset_type NumEntriesLeft;
451 iterator_base(const unsigned char *const Ptr, offset_type NumEntries)
474 const std::pair<offset_type, offset_type> &L =
491 OnDiskIterableChainedHashTable(offset_type NumBuckets, offset_type NumEntries,
506 key_iterator(const unsigned char *const Ptr, offset_type NumEntries,
552 data_iterator(const unsigned char *const Ptr, offset_type NumEntries,