MCPcopy Create free account
hub / github.com/ElementsProject/lightning / example_eq_key

Function example_eq_key

common/test/run-htable.c:123–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 return (u64)e->val << 32 | e->val2;
122}
123static bool example_eq_key(const struct example *e, u64 key)
124{
125 return example_key(e) == key ;
126}
127static size_t example_key_hash(u64 key)
128{
129 return siphash24(&seed, &key, sizeof(key));

Callers

nothing calls this directly

Calls 1

example_keyFunction · 0.85

Tested by

no test coverage detected