• Home
  • Raw
  • Download

Lines Matching refs:pkey

108 _Py_hashtable_hash_ptr(struct _Py_hashtable_t *ht, const void *pkey)  in _Py_hashtable_hash_ptr()  argument
112 _Py_HASHTABLE_READ_KEY(ht, pkey, key); in _Py_hashtable_hash_ptr()
118 _Py_hashtable_compare_direct(_Py_hashtable_t *ht, const void *pkey, in _Py_hashtable_compare_direct() argument
122 return (memcmp(pkey, pkey2, ht->key_size) == 0); in _Py_hashtable_compare_direct()
254 size_t key_size, const void *pkey) in _Py_hashtable_get_entry() argument
262 key_hash = ht->hash_func(ht, pkey); in _Py_hashtable_get_entry()
266 if (entry->key_hash == key_hash && ht->compare_func(ht, pkey, entry)) in _Py_hashtable_get_entry()
275 _Py_hashtable_pop_entry(_Py_hashtable_t *ht, size_t key_size, const void *pkey, in _Py_hashtable_pop_entry() argument
284 key_hash = ht->hash_func(ht, pkey); in _Py_hashtable_pop_entry()
289 if (entry->key_hash == key_hash && ht->compare_func(ht, pkey, entry)) in _Py_hashtable_pop_entry()
312 _Py_hashtable_set(_Py_hashtable_t *ht, size_t key_size, const void *pkey, in _Py_hashtable_set() argument
326 entry = _Py_hashtable_get_entry(ht, key_size, pkey); in _Py_hashtable_set()
330 key_hash = ht->hash_func(ht, pkey); in _Py_hashtable_set()
340 memcpy((void *)_Py_HASHTABLE_ENTRY_PKEY(entry), pkey, ht->key_size); in _Py_hashtable_set()
354 _Py_hashtable_get(_Py_hashtable_t *ht, size_t key_size,const void *pkey, in _Py_hashtable_get() argument
361 entry = _Py_hashtable_get_entry(ht, key_size, pkey); in _Py_hashtable_get()
370 _Py_hashtable_pop(_Py_hashtable_t *ht, size_t key_size, const void *pkey, in _Py_hashtable_pop() argument
374 return _Py_hashtable_pop_entry(ht, key_size, pkey, data, data_size); in _Py_hashtable_pop()
381 _Py_hashtable_delete(_Py_hashtable_t *ht, size_t key_size, const void *pkey)
384 int found = _Py_hashtable_pop_entry(ht, key_size, pkey, NULL, 0);
387 (void)_Py_hashtable_pop_entry(ht, key_size, pkey, NULL, 0);
514 const void *pkey = _Py_HASHTABLE_ENTRY_PKEY(entry); in _Py_hashtable_copy() local
516 err = _Py_hashtable_set(dst, key_size, pkey, data_size, pdata); in _Py_hashtable_copy()