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

Function htable_init

ccan/ccan/htable/htable.c:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void htable_init(struct htable *ht,
80 size_t (*rehash)(const void *elem, void *priv), void *priv)
81{
82 struct htable empty = HTABLE_INITIALIZER(empty, NULL, NULL);
83 *ht = empty;
84 ht->rehash = rehash;
85 ht->priv = priv;
86 ht->table = &ht->common_bits;
87}
88
89/* Fill to 87.5% */
90static inline size_t ht_max(const struct htable *ht)

Callers 11

new_msg_mapFunction · 0.85
htable_init_sizedFunction · 0.85
htable_clearFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
memleak_startFunction · 0.85

Calls

no outgoing calls

Tested by 7

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68