Home
last modified time | relevance | path

Searched refs:keyCompare (Results 1 – 3 of 3) sorted by relevance

/base/startup/init/services/utils/
Dinit_hashmap.c20 HashKeyCompare keyCompare; member
35 …INIT_ERROR_CHECK(info->nodeCompare != NULL && info->keyCompare != NULL, return -1, "Invalid hash c… in OH_HashMapCreate()
41 tab->keyCompare = info->keyCompare; in OH_HashMapCreate()
62 …HashNodeByKey(const HashTab *tab, const HashNode *root, const void *key, HashKeyCompare keyCompare) in GetHashNodeByKey() argument
67 int ret = keyCompare(node, key); in GetHashNodeByKey()
109 int ret = tab->keyCompare(node, key); in OH_HashMapRemove()
132 return GetHashNodeByKey(tab, tab->buckets[hashCode], key, tab->keyCompare); in OH_HashMapGet()
161 int hashCode, const void *key, HashKeyCompare keyCompare) in OH_HashMapFind() argument
164 INIT_ERROR_CHECK(key != NULL && keyCompare != NULL, return NULL, "Invalid hash key"); in OH_HashMapFind()
168 return GetHashNodeByKey(tab, tab->buckets[hashCode], key, keyCompare); in OH_HashMapFind()
/base/startup/init/services/include/
Dinit_hashmap.h45 HashKeyCompare keyCompare; member
61 int hashCode, const void *key, HashKeyCompare keyCompare);
/base/startup/init/test/unittest/loopevent/
Dloopevent_unittest.cpp39 HashKeyCompare keyCompare;