MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / dictGetIterator

Function dictGetIterator

src/dict.cpp:925–936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

923}
924
925dictIterator *dictGetIterator(dict *d)
926{
927 dictIterator *iter = (dictIterator*)zmalloc(sizeof(*iter), MALLOC_LOCAL);
928
929 iter->d = d;
930 iter->table = 0;
931 iter->index = -1;
932 iter->safe = 0;
933 iter->entry = NULL;
934 iter->nextEntry = NULL;
935 return iter;
936}
937
938dictIterator *dictGetSafeIterator(dict *d) {
939 dictIterator *i = dictGetIterator(d);

Callers 15

storeDatabaseMethod · 0.70
processChangesMethod · 0.70
processChangesAsyncMethod · 0.70
commitChangesMethod · 0.70
pubsubPublishMessageFunction · 0.70
pubsubCommandFunction · 0.70
dictGetSafeIteratorFunction · 0.70
sortCommandFunction · 0.70
hashTypeInitIteratorFunction · 0.70

Calls 1

zmallocFunction · 0.85

Tested by

no test coverage detected