Lines Matching full:key

51 	/** Key associated with the current entry */
52 uint64_t key; member
102 * @param key Key corresponding to @p value
103 * @param value Value corresponding to @p key
106 typedef void (*sys_hashmap_callback_t)(uint64_t key, uint64_t value, void *cookie);
123 * Insert a new @p key - @p value pair into @p map.
126 * @param key Key to associate with @p value
127 * @param value Value to associate with @p key
128 * @param old_value Location to store the value previously associated with @p key or `NULL`
129 * @retval 0 if @p value was inserted for an existing key, in which case @p old_value will contain
131 * @retval 1 if a new entry was inserted for the @p key - @p value pair
134 typedef int (*sys_hashmap_insert_t)(struct sys_hashmap *map, uint64_t key, uint64_t value,
140 * Erase the entry associated with key @p key, if one exists.
143 * @param key Key to remove from @p map
144 * @param value Location to store a potential value associated with @p key or `NULL`
147 * @retval false if @p map does not contain a value associated with @p key.
149 typedef bool (*sys_hashmap_remove_t)(struct sys_hashmap *map, uint64_t key, uint64_t *value);
154 * Look-up the @ref uint64_t associated with @p key, if one exists.
157 * @param key Key with which to search @p map
158 * @param value Location to store a potential value associated with @p key or `NULL`
160 * @retval true if @p map contains a value associated with @p key.
161 * @retval false if @p map does not contain a value associated with @p key.
163 typedef bool (*sys_hashmap_get_t)(const struct sys_hashmap *map, uint64_t key, uint64_t *value);
173 /** Insert a key-value pair into the Hashmap */
175 /** Remove a key-value pair from the Hashmap */
177 /** Retrieve the value associated with a given key from the Hashmap */