Go to the source code of this file.
|
void | mhash_init (mhash_t *h, uword n_value_bytes, uword n_key_bytes) |
|
static void | mhash_init_c_string (mhash_t *h, uword n_value_bytes) |
|
static void | mhash_init_vec_string (mhash_t *h, uword n_value_bytes) |
|
static void * | mhash_key_to_mem (mhash_t *h, uword key) |
|
hash_pair_t * | mhash_get_pair (mhash_t *h, const void *key) |
|
uword | mhash_set_mem (mhash_t *h, void *key, uword *new_value, uword *old_value) |
|
uword | mhash_unset (mhash_t *h, void *key, uword *old_value) |
|
static uword * | mhash_get (mhash_t *h, const void *key) |
|
static uword | mhash_set (mhash_t *h, void *key, uword new_value, uword *old_value) |
|
static uword | mhash_unset_key (mhash_t *h, uword key, uword *old_value) |
|
static uword | mhash_value_bytes (mhash_t *m) |
|
static uword | mhash_elts (mhash_t *m) |
|
static uword | mhash_key_vector_is_heap (mhash_t *h) |
|
static void | mhash_free (mhash_t *h) |
|
◆ MHASH_C_STRING_KEY
#define MHASH_C_STRING_KEY 1 |
◆ mhash_foreach
#define mhash_foreach |
( |
|
k, |
|
|
|
v, |
|
|
|
mh, |
|
|
|
body |
|
) |
| |
Value:do { \
hash_pair_t * _mhash_foreach_p; \
hash_foreach_pair (_mhash_foreach_p, (mh)->hash, ({ \
(v) = &_mhash_foreach_p->value[0]; \
body; \
})); \
} while (0)
static void * mhash_key_to_mem(mhash_t *h, uword key)
Definition at line 159 of file mhash.h.
◆ MHASH_VEC_STRING_KEY
#define MHASH_VEC_STRING_KEY 0 |
◆ mhash_elts()
◆ mhash_free()
static void mhash_free |
( |
mhash_t * |
h | ) |
|
|
inlinestatic |
◆ mhash_get()
◆ mhash_get_pair()
◆ mhash_init()
◆ mhash_init_c_string()
static void mhash_init_c_string |
( |
mhash_t * |
h, |
|
|
uword |
n_value_bytes |
|
) |
| |
|
inlinestatic |
◆ mhash_init_vec_string()
static void mhash_init_vec_string |
( |
mhash_t * |
h, |
|
|
uword |
n_value_bytes |
|
) |
| |
|
inlinestatic |
◆ mhash_key_to_mem()
◆ mhash_key_vector_is_heap()
◆ mhash_set()
◆ mhash_set_mem()
◆ mhash_unset()
◆ mhash_unset_key()
◆ mhash_value_bytes()
◆ format_mhash_key