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

Function hash_ptr

common/memleak.c:82–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static size_t hash_ptr(const void *elem, void *unused UNNEEDED)
83{
84 static struct siphash_seed seed;
85 return siphash24(&seed, &elem, sizeof(elem));
86}
87
88bool memleak_ptr(struct htable *memtable, const void *p)
89{

Callers 3

memleak_ptrFunction · 0.85
children_into_htableFunction · 0.85
memleak_getFunction · 0.85

Calls 1

siphash24Function · 0.85

Tested by

no test coverage detected