Lines Matching refs:HashNode
26 HashNode *buckets[0];
36 HashTab *tab = (HashTab *)calloc(1, sizeof(HashTab) + sizeof(HashNode*) * info->maxBucket); in OH_HashMapCreate()
49 static HashNode *GetHashNodeByNode(const HashTab *tab, const HashNode *root, const HashNode *new) in GetHashNodeByNode()
51 HashNode *node = (HashNode *)root; in GetHashNodeByNode()
62 static HashNode *GetHashNodeByKey(const HashTab *tab, const HashNode *root, const void *key, HashKe… in GetHashNodeByKey()
65 HashNode *node = (HashNode *)root; in GetHashNodeByKey()
76 int32_t OH_HashMapAdd(HashMapHandle handle, HashNode *node) in OH_HashMapAdd()
87 HashNode *tmp = GetHashNodeByNode(tab, tab->buckets[hashCode], node); in OH_HashMapAdd()
106 HashNode *node = tab->buckets[hashCode]; in OH_HashMapRemove()
107 HashNode *preNode = node; in OH_HashMapRemove()
123 HashNode *OH_HashMapGet(HashMapHandle handle, const void *key) in OH_HashMapGet()
135 static void HashListFree(HashTab *tab, HashNode *root, void *context) in HashListFree()
140 HashNode *node = root; in HashListFree()
142 HashNode *next = node->next; in HashListFree()
160 HashNode *OH_HashMapFind(HashMapHandle handle, in OH_HashMapFind()
171 void OH_HashMapTraverse(HashMapHandle handle, void (*hashNodeTraverse)(const HashNode *node, const … in OH_HashMapTraverse()
177 HashNode *node = tab->buckets[i]; in OH_HashMapTraverse()
179 HashNode *next = node->next; in OH_HashMapTraverse()
191 HashNode *node = tab->buckets[i]; in OH_HashMapIsEmpty()