23 const void* p_data,
size_t size
49#define bj_htable_new_t(K, V) bj_htable_new(sizeof(K), sizeof(V))
General-purpose definitions for Banjo API.
Header file for Array container type.
struct bj_htable_t bj_htable
Typedef for the bj_htable_t struct.
Definition htable.h:28
void * bj_htable_set(bj_htable *table, void *p_key, void *p_value)
Inserts a value into the hash table.
bj_htable * bj_htable_new(size_t bytes_key, size_t bytes_value)
Creates a new bj_htable with the specified sizes for keys and values.
size_t bj_htable_len(const bj_htable *table)
Returns the number of elements in the table.
uint32_t(* bj_hash_fn)(const void *p_data, size_t size)
Function type for hashing keys.
Definition htable.h:22
void * bj_htable_get(const bj_htable *table, const void *p_key, void *p_default)
Returns the value associated with p_key, if it exists.
void bj_htable_del(bj_htable *p_table)
Deletes a bj_htable object and releases associated memory.
All memory-related functions, including custom allocators.