| 661 | |
| 662 | template <typename Elem> |
| 663 | static size_t ReadFromBytes(const uint8_t* ptr, size_t offset, Elem* out) { |
| 664 | DCHECK(ptr != nullptr); |
| 665 | DCHECK_ALIGNED(ptr + offset, sizeof(*out)); |
| 666 | *out = *reinterpret_cast<const Elem*>(ptr + offset); |
| 667 | return offset + sizeof(*out); |
| 668 | } |
| 669 | |
| 670 | Alloc allocfn_; // Allocator function. |
| 671 | HashFn hashfn_; // Hashing function. |
nothing calls this directly
no outgoing calls
no test coverage detected