diff --git a/include/ck_ht.h b/include/ck_ht.h index 47e7d79..672cfb3 100644 --- a/include/ck_ht.h +++ b/include/ck_ht.h @@ -87,6 +87,14 @@ ck_ht_entry_empty(ck_ht_entry_t *entry) 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_ht_entry_key_set(ck_ht_entry_t *entry, const void *key, uint16_t key_length) {