Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Typedefs | Functions
wmem_map.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_map_t wmem_map_t
 

Functions

WS_DLL_PUBLIC wmem_map_twmem_map_new (wmem_allocator_t *allocator, GHashFunc hash_func, GEqualFunc eql_func) G_GNUC_MALLOC
 
WS_DLL_PUBLIC wmem_map_twmem_map_new_autoreset (wmem_allocator_t *metadata_scope, wmem_allocator_t *data_scope, GHashFunc hash_func, GEqualFunc eql_func) G_GNUC_MALLOC
 
WS_DLL_PUBLIC void * wmem_map_insert (wmem_map_t *map, const void *key, void *value)
 
WS_DLL_PUBLIC bool wmem_map_contains (wmem_map_t *map, const void *key)
 
WS_DLL_PUBLIC void * wmem_map_lookup (wmem_map_t *map, const void *key)
 
WS_DLL_PUBLIC bool wmem_map_lookup_extended (wmem_map_t *map, const void *key, const void **orig_key, void **value)
 
WS_DLL_PUBLIC void * wmem_map_remove (wmem_map_t *map, const void *key)
 
WS_DLL_PUBLIC bool wmem_map_steal (wmem_map_t *map, const void *key)
 
WS_DLL_PUBLIC wmem_list_twmem_map_get_keys (wmem_allocator_t *list_allocator, wmem_map_t *map)
 
WS_DLL_PUBLIC void wmem_map_foreach (wmem_map_t *map, GHFunc foreach_func, void *user_data)
 
WS_DLL_PUBLIC unsigned wmem_map_foreach_remove (wmem_map_t *map, GHRFunc foreach_func, void *user_data)
 
WS_DLL_PUBLIC void * wmem_map_find (wmem_map_t *map, GHRFunc foreach_func, void *user_data)
 
WS_DLL_PUBLIC unsigned wmem_map_size (wmem_map_t *map)
 
WS_DLL_PUBLIC uint32_t wmem_strong_hash (const uint8_t *buf, const size_t len)
 
WS_DLL_PUBLIC unsigned wmem_str_hash (const void *key)
 
WS_DLL_PUBLIC unsigned wmem_int64_hash (const void *key)
 
WS_DLL_PUBLIC unsigned wmem_double_hash (const void *key)
 

Detailed Description

Definitions for the Wireshark Memory Manager Hash Map 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