MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dictGetIterator

Function dictGetIterator

app/redis-6.2.6/src/dict.c:569–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567}
568
569dictIterator *dictGetIterator(dict *d)
570{
571 dictIterator *iter = zmalloc(sizeof(*iter));
572
573 iter->d = d;
574 iter->table = 0;
575 iter->index = -1;
576 iter->safe = 0;
577 iter->entry = NULL;
578 iter->nextEntry = NULL;
579 return iter;
580}
581
582dictIterator *dictGetSafeIterator(dict *d) {
583 dictIterator *i = dictGetIterator(d);

Callers 15

dictGetSafeIteratorFunction · 0.70
findBigKeysFunction · 0.70
unblockClientWaitingDataFunction · 0.70
pubsubPublishMessageFunction · 0.70
pubsubCommandFunction · 0.70

Calls 1

zmallocFunction · 0.85

Tested by

no test coverage detected