Tinyhash
This is a library containing multiple C implementations of hashmap.
|
Go to the source code of this file.
Classes | |
struct | th_key_t |
Represent an entry key. More... | |
Functions | |
th_key_t | th_key_create (th_any_t data, size_t size) |
Create a key struct from data and size, it will automatically compute its hash. | |
bool | th_key_is_equal (th_key_t *first, th_key_t *second) |
Key comparator function. | |
Create a key struct from data and size, it will automatically compute its hash.
data | |
size |
Definition at line 6 of file key.c.
References th_key_t::hash, and th_hash().
Referenced by th_oa_table_delete(), th_oa_table_get(), th_oa_table_put(), th_sc_table_delete(), th_sc_table_get(), and th_sc_table_put().
Key comparator function.
first | |
second |
Definition at line 14 of file key.c.
References th_key_t::data, and th_key_t::size.
Referenced by th_oa_table_find(), and th_sc_table_find().