Lines Matching refs:key_len
48 e->dtor(e->key, e->key_len, e->ptr); in hash_element_dtor()
54 e->key_len = 0; in hash_element_dtor()
90 mk_hash_element(const void *key, size_t key_len, const void *p, in mk_hash_element() argument
95 key_len); in mk_hash_element()
98 memcpy(he->key, key, key_len); in mk_hash_element()
99 he->key_len = 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()