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

Function dictGetIterator

deps/hiredis/dict.c:270–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270static dictIterator *dictGetIterator(dict *ht) {
271 dictIterator *iter = hi_malloc(sizeof(*iter));
272 if (iter == NULL)
273 return NULL;
274
275 iter->ht = ht;
276 iter->index = -1;
277 iter->entry = NULL;
278 iter->nextEntry = NULL;
279 return iter;
280}
281
282static dictEntry *dictNext(dictIterator *iter) {
283 while (1) {

Callers 1

__redisAsyncFreeFunction · 0.70

Calls 1

hi_mallocFunction · 0.70

Tested by

no test coverage detected