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

Function htable_next_

ccan/ccan/htable/htable.c:198–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void *htable_next_(const struct htable *ht, struct htable_iter *i)
199{
200 for (i->off++; i->off < (size_t)1 << ht->bits; i->off++) {
201 if (entry_is_valid(ht->table[i->off]))
202 return get_raw_ptr(ht, ht->table[i->off]);
203 }
204 return NULL;
205}
206
207void *htable_prev_(const struct htable *ht, struct htable_iter *i)
208{

Callers 1

htable_checkFunction · 0.85

Calls 2

entry_is_validFunction · 0.85
get_raw_ptrFunction · 0.85

Tested by

no test coverage detected