MCPcopy Create free account
hub / github.com/NetSys/bess / Hash

Method Hash

core/utils/cuckoo_map.h:508–510  ·  view source on GitHub ↗

Primary hash value. Should always be non-zero (= not empty)

Source from the content-addressed store, hash-verified

506
507 // Primary hash value. Should always be non-zero (= not empty)
508 static HashResult Hash(const K& key, const H& hasher) {
509 return hasher(key) | (1u << 31);
510 }
511
512 static bool Eq(const K& lhs, const K& rhs, const E& eq) {
513 return eq(lhs, rhs);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected