Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
wmem_tree.h File Reference
#include "wmem_core.h"

Go to the source code of this file.

Classes

struct  _wmem_tree_key_t
 

Macros

#define WMEM_TREE_STRING_NOCASE   0x00000001
 

Typedefs

typedef struct _wmem_tree_t wmem_tree_t
 
typedef struct _wmem_tree_key_t wmem_tree_key_t
 
typedef bool(* wmem_foreach_func) (const void *key, void *value, void *userdata)
 
typedef void(* wmem_printer_func) (const void *data)
 

Functions

WS_DLL_PUBLIC wmem_tree_twmem_tree_new (wmem_allocator_t *allocator) G_GNUC_MALLOC
 
WS_DLL_PUBLIC wmem_tree_twmem_tree_new_autoreset (wmem_allocator_t *metadata_scope, wmem_allocator_t *data_scope) G_GNUC_MALLOC
 
WS_DLL_PUBLIC void wmem_tree_destroy (wmem_tree_t *tree, bool free_keys, bool free_values)
 
WS_DLL_PUBLIC bool wmem_tree_is_empty (wmem_tree_t *tree)
 
WS_DLL_PUBLIC unsigned wmem_tree_count (wmem_tree_t *tree)
 
WS_DLL_PUBLIC void wmem_tree_insert32 (wmem_tree_t *tree, uint32_t key, void *data)
 
WS_DLL_PUBLIC bool wmem_tree_contains32 (wmem_tree_t *tree, uint32_t key)
 
WS_DLL_PUBLIC void * wmem_tree_lookup32 (wmem_tree_t *tree, uint32_t key)
 
WS_DLL_PUBLIC void * wmem_tree_lookup32_le (wmem_tree_t *tree, uint32_t key)
 
WS_DLL_PUBLIC void * wmem_tree_lookup32_le_full (wmem_tree_t *tree, uint32_t key, uint32_t *orig_key)
 
WS_DLL_PUBLIC void * wmem_tree_lookup32_ge (wmem_tree_t *tree, uint32_t key)
 
WS_DLL_PUBLIC void * wmem_tree_lookup32_ge_full (wmem_tree_t *tree, uint32_t key, uint32_t *orig_key)
 
WS_DLL_PUBLIC void * wmem_tree_remove32 (wmem_tree_t *tree, uint32_t key)
 
WS_DLL_PUBLIC void wmem_tree_insert_string (wmem_tree_t *tree, const char *key, void *data, uint32_t flags)
 
WS_DLL_PUBLIC void * wmem_tree_lookup_string (wmem_tree_t *tree, const char *key, uint32_t flags)
 
WS_DLL_PUBLIC void * wmem_tree_remove_string (wmem_tree_t *tree, const char *key, uint32_t flags)
 
WS_DLL_PUBLIC void wmem_tree_insert32_array (wmem_tree_t *tree, wmem_tree_key_t *key, void *data)
 
WS_DLL_PUBLIC void * wmem_tree_lookup32_array (wmem_tree_t *tree, wmem_tree_key_t *key)
 
WS_DLL_PUBLIC void * wmem_tree_lookup32_array_le (wmem_tree_t *tree, wmem_tree_key_t *key)
 
WS_DLL_PUBLIC bool wmem_tree_foreach (wmem_tree_t *tree, wmem_foreach_func callback, void *user_data)
 
WS_DLL_PUBLIC void wmem_print_tree (wmem_tree_t *tree, wmem_printer_func key_printer, wmem_printer_func data_printer)
 

Detailed Description

Definitions for the Wireshark Memory Manager Red-Black Tree Based on the red-black tree implementation in epan/emem.* Copyright 2013, 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