jansson_d.hashtable

Members

Aliases

bucket_t
alias bucket_t = .hashtable_bucket
Undocumented in source.
hashtable_t
alias hashtable_t = .hashtable
Undocumented in source.
list_t
alias list_t = .hashtable_list
Undocumented in source.
pair_t
alias pair_t = .hashtable_pair
Undocumented in source.

Functions

hashtable_clear
void hashtable_clear(.hashtable_t* hashtable_)

Clear hashtable

hashtable_close
void hashtable_close(.hashtable_t* hashtable_)

Release all resources used by a hashtable object

hashtable_del
int hashtable_del(.hashtable_t* hashtable_, char* key, size_t key_len)

Remove a value from the hashtable

hashtable_get
void* hashtable_get(.hashtable_t* hashtable_, char* key, size_t key_len)

Get a value associated with a key

hashtable_init
int hashtable_init(.hashtable_t* hashtable_)

Initialize a hashtable object

hashtable_iter
void* hashtable_iter(.hashtable_t* hashtable_)

Iterate over hashtable

hashtable_iter_at
void* hashtable_iter_at(.hashtable_t* hashtable_, char* key, size_t key_len)

Return an iterator at a specific key

hashtable_iter_key
void* hashtable_iter_key(void* iter)

Retrieve the key pointed by an iterator

hashtable_iter_key_len
size_t hashtable_iter_key_len(void* iter)

Retrieve the key length pointed by an iterator

hashtable_iter_next
void* hashtable_iter_next(.hashtable_t* hashtable_, void* iter)

Advance an iterator

hashtable_iter_set
void hashtable_iter_set(void* iter, jansson_d.jansson.json_t* value)

Set the value pointed by an iterator

hashtable_iter_value
void* hashtable_iter_value(void* iter)

Retrieve the value pointed by an iterator

hashtable_set
int hashtable_set(.hashtable_t* hashtable_, char* key, size_t key_len, jansson_d.jansson.json_t* value)

Add/modify value in hashtable

Manifest constants

INITIAL_HASHTABLE_ORDER
enum INITIAL_HASHTABLE_ORDER;
Undocumented in source.

Structs

hashtable
struct hashtable
Undocumented in source.
hashtable_bucket
struct hashtable_bucket
Undocumented in source.
hashtable_list
struct hashtable_list
Undocumented in source.
hashtable_pair
struct hashtable_pair
Undocumented in source.

Templates

hash_str
template hash_str(string key, string len)
Undocumented in source.
hashtable_key_to_iter
template hashtable_key_to_iter(string key_)
Undocumented in source.
list_to_pair
template list_to_pair(string list_)
Undocumented in source.
ordered_list_to_pair
template ordered_list_to_pair(string list_)
Undocumented in source.

Meta