Lines Matching refs:ptr

265   HashSet(const uint8_t* ptr, bool make_copy_of_data, size_t* read_count) noexcept {  in HashSet()  argument
268 offset = ReadFromBytes(ptr, offset, &temp); in HashSet()
270 offset = ReadFromBytes(ptr, offset, &temp); in HashSet()
273 offset = ReadFromBytes(ptr, offset, &temp); in HashSet()
275 offset = ReadFromBytes(ptr, offset, &min_load_factor_); in HashSet()
276 offset = ReadFromBytes(ptr, offset, &max_load_factor_); in HashSet()
279 data_ = const_cast<T*>(reinterpret_cast<const T*>(ptr + offset)); in HashSet()
286 offset = ReadFromBytes(ptr, offset, &data_[i]); in HashSet()
295 size_t WriteToMemory(uint8_t* ptr) const { in WriteToMemory() argument
297 offset = WriteToBytes(ptr, offset, static_cast<uint64_t>(num_elements_)); in WriteToMemory()
298 offset = WriteToBytes(ptr, offset, static_cast<uint64_t>(num_buckets_)); in WriteToMemory()
299 offset = WriteToBytes(ptr, offset, static_cast<uint64_t>(elements_until_expand_)); in WriteToMemory()
300 offset = WriteToBytes(ptr, offset, min_load_factor_); in WriteToMemory()
301 offset = WriteToBytes(ptr, offset, max_load_factor_); in WriteToMemory()
305 offset = WriteToBytes(ptr, offset, data_[i]); in WriteToMemory()
739 static size_t WriteToBytes(uint8_t* ptr, size_t offset, Elem n) { in WriteToBytes() argument
740 DCHECK_ALIGNED(ptr + offset, sizeof(n)); in WriteToBytes()
741 if (ptr != nullptr) { in WriteToBytes()
742 *reinterpret_cast<Elem*>(ptr + offset) = n; in WriteToBytes()
748 static size_t ReadFromBytes(const uint8_t* ptr, size_t offset, Elem* out) { in ReadFromBytes() argument
749 DCHECK(ptr != nullptr); in ReadFromBytes()
750 DCHECK_ALIGNED(ptr + offset, sizeof(*out)); in ReadFromBytes()
751 *out = *reinterpret_cast<const Elem*>(ptr + offset); in ReadFromBytes()