Lines Matching refs:key
42 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB));
50 * Hashes the memory pointed to by key with the given size. Useful for
53 int hashmapHash(void* key, size_t keySize);
56 * Puts value for the given key in the map. Returns pre-existing value if
62 void* hashmapPut(Hashmap* map, void* key, void* value);
65 * Gets a value from the map. Returns NULL if no entry for the given key is
68 void* hashmapGet(Hashmap* map, void* key);
71 * Returns true if the map contains an entry for the given key.
73 bool hashmapContainsKey(Hashmap* map, void* key);
76 * Gets the value for a key. If a value is not found, this function gets a
82 void* hashmapMemoize(Hashmap* map, void* key,
83 void* (*initialValue)(void* key, void* context), void* context);
89 void* hashmapRemove(Hashmap* map, void* key);
101 bool (*callback)(void* key, void* value, void* context),
123 * Hashes int keys. 'key' is a pointer to int.
125 int hashmapIntHash(void* key);