15 if (first == NULL || second == NULL) {
23 return memcmp(first->
data, second->
data, first->
size) == 0;
uint32_t th_hash(uint8_t *bytes, size_t size)
Compute an unsigned int from bytes.
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.
void * th_any_t
Represent any type of data.