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

Method hashCode

Fleece/Support/ConcurrentMap.hh:47–47  ·  view source on GitHub ↗

Computes the hash code of a key. This code can be passed to alternate versions of the `find` and `insert` methods, to avoid hashing the same key multiple times. */

Source from the content-addressed store, hash-verified

45 /** Computes the hash code of a key. This code can be passed to alternate versions of the
46 `find` and `insert` methods, to avoid hashing the same key multiple times. */
47 static inline hash_t hashCode(slice key) FLPURE {return hash_t( key.hash() );}
48
49 int count() const FLPURE {return _count;}
50 int capacity() const FLPURE {return _capacity;}

Callers

nothing calls this directly

Calls 2

hash_tEnum · 0.70
hashMethod · 0.45

Tested by

no test coverage detected