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