MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _dictInit

Function _dictInit

src/util/dict.c:160–171  ·  view source on GitHub ↗

Initialize the hash table */

Source from the content-addressed store, hash-verified

158
159/* Initialize the hash table */
160int _dictInit
161(
162 dict *d,
163 const dictType *type
164) {
165 _dictReset(d, 0);
166 _dictReset(d, 1);
167 d->type = type;
168 d->rehashidx = -1;
169 d->pauserehash = 0;
170 return DICT_OK;
171}
172
173/* Resize the table to the minimal size that contains all the elements,
174 * but with the invariant of a USED/BUCKETS ratio near to <= 1 */

Callers 1

HashTableCreateFunction · 0.85

Calls 1

_dictResetFunction · 0.85

Tested by

no test coverage detected