MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / hash

Method hash

mllm/engine/prefix_cache/HaHaHash.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25} // namespace MLLM_ANONYMOUS_NAMESPACE
26
27XXH64_hash_t ZenFSHashCode::hash() const noexcept {
28 unsigned char buf[sizeof(uint64_t) * 2 + sizeof(uint32_t)];
29 size_t off = 0;
30 write_be64(buf + off, parent_hash_code);
31 off += sizeof(uint64_t);
32 write_be64(buf + off, content_hash_code);
33 off += sizeof(uint64_t);
34 write_be32(buf + off, extra_hash_code);
35 return XXH64(buf, sizeof(buf), 0);
36}
37
38bool ZenFSHashCode::operator==(const ZenFSHashCode& o) const noexcept {
39 return parent_hash_code == o.parent_hash_code && content_hash_code == o.content_hash_code

Callers

nothing calls this directly

Calls 2

write_be64Function · 0.85
write_be32Function · 0.85

Tested by

no test coverage detected