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

Function htable_next_

ccan/ccan/htable/htable.c:186–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

htable_checkFunction · 0.85

Calls 2

entry_is_validFunction · 0.85
get_raw_ptrFunction · 0.85

Tested by

no test coverage detected