| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Typedefs | Functions
wmem_multimap.h File Reference
`#include <glib.h>`
`#include "wmem_core.h"`
`#include "wmem_list.h"`

Go to the source code of this file.

## Typedefs
typedef struct _wmem_multimap_t | wmem_multimap_t
| Opaque type representing a hash multimap in the wmem system.

## Functions
WS_DLL_PUBLIC wmem_multimap_t * | wmem_multimap_new (wmem_allocator_t *allocator, GHashFunc hash_func, GEqualFunc eql_func)
| Creates a multimap with the given allocator scope.
WS_DLL_PUBLIC wmem_multimap_t * | wmem_multimap_new_autoreset (wmem_allocator_t *metadata_scope, wmem_allocator_t *data_scope, GHashFunc hash_func, GEqualFunc eql_func)
| Creates a multimap with two allocator scopes.
WS_DLL_PUBLIC wmem_list_t * | wmem_multimap_get_keys (wmem_allocator_t *list_allocator, const wmem_multimap_t *map)
| Retrieves a list of the keys inside the multimap.
WS_DLL_PUBLIC unsigned | wmem_multimap_size (const wmem_multimap_t *map)
| Return the total number of elements in the multimap.
WS_DLL_PUBLIC unsigned | wmem_multimap_count (const wmem_multimap_t *map, const void *key)
| Returns the number of values in the multimap with a certain hash key.
WS_DLL_PUBLIC bool | wmem_multimap_insert32 (wmem_multimap_t *map, const void *key, uint32_t frame_num, void *value)
| Insert a value in the multimap.
WS_DLL_PUBLIC void * | wmem_multimap_lookup32 (const wmem_multimap_t *map, const void *key, const uint32_t frame_num)
| Lookup a value in the multimap combination with an exact match.
WS_DLL_PUBLIC void * | wmem_multimap_lookup32_le (const wmem_multimap_t *map, const void *key, const uint32_t frame_num)
| Lookup a value in the multimap with an exact match for the map key and the largest value less than or equal to the tree key.
WS_DLL_PUBLIC void * | wmem_multimap_remove32 (wmem_multimap_t *map, const void *key, const uint32_t frame_num)
| Remove a value from the multimap.

## Detailed Description

Definitions for the Wireshark Memory Manager Hash Multimap Copyright 2021, John Thacker johnt.nosp@m.hack.nosp@m.er@gm.nosp@m.ail..nosp@m.com Copyright 2014, Evan Huus eapac.nosp@m.he@g.nosp@m.mail..nosp@m.com

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later