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

Function _dictReset

src/dict.cpp:101–107  ·  view source on GitHub ↗

Reset a hash table already initialized with ht_init(). * NOTE: This function should only be called by ht_destroy(). */

Source from the content-addressed store, hash-verified

99/* Reset a hash table already initialized with ht_init().
100 * NOTE: This function should only be called by ht_destroy(). */
101static void _dictReset(dictht *ht)
102{
103 ht->table = NULL;
104 ht->size = 0;
105 ht->sizemask = 0;
106 ht->used = 0;
107}
108
109/* Create a new hash table */
110dict *dictCreate(dictType *type,

Callers 5

_dictInitFunction · 0.70
dictMergeFunction · 0.70
dictRehashFunction · 0.70
dictCompleteRehashAsyncFunction · 0.70
_dictClearFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected