MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / idxFromObj

Method idxFromObj

src/semiorderedset.h:321–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 inline size_t hashmask() const { return (1ULL << bits) - 1; }
320
321 size_t idxFromObj(const T_KEY &key) const
322 {
323 size_t v = keydbutils::hash(key);
324 return v & hashmask();
325 }
326
327 bool FRehashedRow(size_t idx) const
328 {

Callers

nothing calls this directly

Calls 1

hashFunction · 0.70

Tested by

no test coverage detected