MCPcopy Create free account
hub / github.com/couchbase/fleece / hashCode

Method hashCode

Fleece/Support/StringTable.hh:37–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 enum class hash_t : uint32_t { Empty = 0 };
36
37 static inline hash_t hashCode(key_t key) FLPURE {
38 return hash_t( std::max(key.hash(), 1u) ); // hashCode must never be zero
39 }
40
41 size_t count() const FLPURE {return _count;}
42 size_t tableSize() const FLPURE {return _size;}

Callers

nothing calls this directly

Calls 2

hash_tEnum · 0.70
hashMethod · 0.45

Tested by

no test coverage detected