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

Function dictCreate

deps/hiredis/dict.c:74–81  ·  view source on GitHub ↗

Create a new hash table */

Source from the content-addressed store, hash-verified

72
73/* Create a new hash table */
74static dict *dictCreate(dictType *type, void *privDataPtr) {
75 dict *ht = hi_malloc(sizeof(*ht));
76 if (ht == NULL)
77 return NULL;
78
79 _dictInit(ht,type,privDataPtr);
80 return ht;
81}
82
83/* Initialize the hash table */
84static int _dictInit(dict *ht, dictType *type, void *privDataPtr) {

Callers 1

redisAsyncInitializeFunction · 0.70

Calls 2

hi_mallocFunction · 0.70
_dictInitFunction · 0.70

Tested by

no test coverage detected