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

Function htable_first_

ccan/ccan/htable/htable.c:189–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void *htable_first_(const struct htable *ht, struct htable_iter *i)
190{
191 for (i->off = 0; i->off < (size_t)1 << ht->bits; i->off++) {
192 if (entry_is_valid(ht->table[i->off]))
193 return get_raw_ptr(ht, ht->table[i->off]);
194 }
195 return NULL;
196}
197
198void *htable_next_(const struct htable *ht, struct htable_iter *i)
199{

Callers 1

htable_checkFunction · 0.85

Calls 2

entry_is_validFunction · 0.85
get_raw_ptrFunction · 0.85

Tested by

no test coverage detected