• Home
  • Raw
  • Download

Lines Matching refs:ptr

325   HashSet(const uint8_t* ptr, bool make_copy_of_data, size_t* read_count) noexcept {  in HashSet()  argument
328 offset = ReadFromBytes(ptr, offset, &temp); in HashSet()
330 offset = ReadFromBytes(ptr, offset, &temp); in HashSet()
333 offset = ReadFromBytes(ptr, offset, &temp); in HashSet()
335 offset = ReadFromBytes(ptr, offset, &min_load_factor_); in HashSet()
336 offset = ReadFromBytes(ptr, offset, &max_load_factor_); in HashSet()
339 data_ = const_cast<T*>(reinterpret_cast<const T*>(ptr + offset)); in HashSet()
346 offset = ReadFromBytes(ptr, offset, &data_[i]); in HashSet()
355 size_t WriteToMemory(uint8_t* ptr) const { in WriteToMemory() argument
357 offset = WriteToBytes(ptr, offset, static_cast<uint64_t>(num_elements_)); in WriteToMemory()
358 offset = WriteToBytes(ptr, offset, static_cast<uint64_t>(num_buckets_)); in WriteToMemory()
359 offset = WriteToBytes(ptr, offset, static_cast<uint64_t>(elements_until_expand_)); in WriteToMemory()
360 offset = WriteToBytes(ptr, offset, min_load_factor_); in WriteToMemory()
361 offset = WriteToBytes(ptr, offset, max_load_factor_); in WriteToMemory()
365 offset = WriteToBytes(ptr, offset, data_[i]); in WriteToMemory()
824 static size_t WriteToBytes(uint8_t* ptr, size_t offset, Elem n) { in WriteToBytes() argument
825 DCHECK_ALIGNED(ptr + offset, sizeof(n)); in WriteToBytes()
826 if (ptr != nullptr) { in WriteToBytes()
827 *reinterpret_cast<Elem*>(ptr + offset) = n; in WriteToBytes()
833 static size_t ReadFromBytes(const uint8_t* ptr, size_t offset, Elem* out) { in ReadFromBytes() argument
834 DCHECK(ptr != nullptr); in ReadFromBytes()
835 DCHECK_ALIGNED(ptr + offset, sizeof(*out)); in ReadFromBytes()
836 *out = *reinterpret_cast<const Elem*>(ptr + offset); in ReadFromBytes()