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

Function hash_ptr

common/memleak.c:67–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static size_t hash_ptr(const void *elem, void *unused UNNEEDED)
68{
69 static struct siphash_seed seed;
70 return siphash24(&seed, &elem, sizeof(elem));
71}
72
73bool memleak_ptr(struct htable *memtable, const void *p)
74{

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