Searched refs:keyCompare (Results 1 – 3 of 3) sorted by relevance
/base/startup/init/services/utils/ |
D | init_hashmap.c | 20 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/ |
D | init_hashmap.h | 45 HashKeyCompare keyCompare; member 61 int hashCode, const void *key, HashKeyCompare keyCompare);
|
/base/startup/init/test/unittest/loopevent/ |
D | loopevent_unittest.cpp | 39 HashKeyCompare keyCompare;
|