MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / ReadFromBytes

Method ReadFromBytes

Bcore/src/main/cpp/base/hash_set.h:663–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected