MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / hash_bytes

Function hash_bytes

modules/engine/runtime/include/SkrRT/ecs/hash.hpp:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30 template <class T>
31 inline size_t hash_bytes(const T* const data, const size_t length, const size_t basis = _FNV_offset_basis) noexcept
32 {
33 // bitwise hashes the representation of an array
34 return hash_append(
35 basis, reinterpret_cast<const unsigned char*>(data), length * sizeof(T));
36 }
37}

Callers 1

hashFunction · 0.85

Calls 1

hash_appendFunction · 0.85

Tested by

no test coverage detected