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

Function htable_first_

ccan/ccan/htable/htable.c:177–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void *htable_first_(const struct htable *ht, struct htable_iter *i)
178{
179 for (i->off = 0; i->off < (size_t)1 << ht->bits; i->off++) {
180 if (entry_is_valid(ht->table[i->off]))
181 return get_raw_ptr(ht, ht->table[i->off]);
182 }
183 return NULL;
184}
185
186void *htable_next_(const struct htable *ht, struct htable_iter *i)
187{

Callers 1

htable_checkFunction · 0.85

Calls 2

entry_is_validFunction · 0.85
get_raw_ptrFunction · 0.85

Tested by

no test coverage detected