| 25 | } // namespace MLLM_ANONYMOUS_NAMESPACE |
| 26 | |
| 27 | XXH64_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 | |
| 38 | bool ZenFSHashCode::operator==(const ZenFSHashCode& o) const noexcept { |
| 39 | return parent_hash_code == o.parent_hash_code && content_hash_code == o.content_hash_code |
nothing calls this directly
no test coverage detected