ck_ht: Add ck_ht_entry_set_key_direct function.

ck_pring
Samy Al Bahra 13 years ago
parent fb5d9331e2
commit 41ec076372

@ -87,6 +87,14 @@ ck_ht_entry_empty(ck_ht_entry_t *entry)
return entry->key == CK_HT_KEY_EMPTY; return entry->key == CK_HT_KEY_EMPTY;
} }
CK_CC_INLINE static void
ck_ht_entry_key_set_direct(ck_ht_entry_t *entry, uintptr_t key)
{
entry->key = key;
return;
}
CK_CC_INLINE static void CK_CC_INLINE static void
ck_ht_entry_key_set(ck_ht_entry_t *entry, const void *key, uint16_t key_length) ck_ht_entry_key_set(ck_ht_entry_t *entry, const void *key, uint16_t key_length)
{ {

Loading…
Cancel
Save