Lines Matching refs:key
48 e->dtor(e->key, e->key_len, e->ptr); in hash_element_dtor()
90 mk_hash_element(const void *key, size_t key_len, const void *p, in mk_hash_element() argument
98 memcpy(he->key, key, key_len); in mk_hash_element()
108 void *Curl_hash_add2(struct Curl_hash *h, void *key, size_t key_len, void *p, in Curl_hash_add2() argument
127 l = FETCH_LIST(h, key, key_len); in Curl_hash_add2()
131 if(h->comp_func(he->key, he->key_len, key, key_len)) { in Curl_hash_add2()
138 he = mk_hash_element(key, key_len, p, dtor); in Curl_hash_add2()
157 Curl_hash_add(struct Curl_hash *h, void *key, size_t key_len, void *p) in Curl_hash_add() argument
159 return Curl_hash_add2(h, key, key_len, p, NULL); in Curl_hash_add()
167 int Curl_hash_delete(struct Curl_hash *h, void *key, size_t key_len) in Curl_hash_delete() argument
174 struct Curl_llist *l = FETCH_LIST(h, key, key_len); in Curl_hash_delete()
178 if(h->comp_func(he->key, he->key_len, key, key_len)) { in Curl_hash_delete()
193 Curl_hash_pick(struct Curl_hash *h, void *key, size_t key_len) in Curl_hash_pick() argument
201 l = FETCH_LIST(h, key, key_len); in Curl_hash_pick()
204 if(h->comp_func(he->key, he->key_len, key, key_len)) { in Curl_hash_pick()
279 size_t Curl_hash_str(void *key, size_t key_length, size_t slots_num) in Curl_hash_str() argument
281 const char *key_str = (const char *) key; in Curl_hash_str()