| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
wmem_miscutl.h
Go to the documentation of this file.
1
12#ifndef __WMEM_MISCUTL_H__
13#define __WMEM_MISCUTL_H__
14
15#include <string.h>
16#include <glib.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
39WS_DLL_PUBLIC
40void *
41 wmem_memdup(wmem_allocator_t *allocator, const void *source, const size_t size)
42G_GNUC_ALLOC_SIZE(3);
43
55WS_DLL_PUBLIC
56int
57 wmem_compare_int(const void *a, const void *b);
58
70WS_DLL_PUBLIC
71int
72 wmem_compare_uint(const void *a, const void *b);
73
77#ifdef __cplusplus
78}
79#endif /* __cplusplus */
80
81#endif /* __WMEM_MISCUTL_H__ */
82
83/*
84 * Editor modelines - https://www.wireshark.org/tools/modelines.html
85 *
86 * Local variables:
87 * c-basic-offset: 4
88 * tab-width: 8
89 * indent-tabs-mode: nil
90 * End:
91 *
92 * vi: set shiftwidth=4 tabstop=8 expandtab:
93 * :indentSize=4:tabSize=8:noTabs=true:
94 */
wmem_memdup
WS_DLL_PUBLIC void * wmem_memdup(wmem_allocator_t *allocator, const void *source, const size_t size) G_GNUC_ALLOC_SIZE(3)
Copies a block of memory.
Definition wmem_miscutl.c:19
wmem_compare_int
WS_DLL_PUBLIC int wmem_compare_int(const void *a, const void *b)
Generic GCompareFunc to compare two signed integers.
Definition wmem_miscutl.c:33
wmem_compare_uint
WS_DLL_PUBLIC int wmem_compare_uint(const void *a, const void *b)
Generic GCompareFunc to compare two unsigned integers.
Definition wmem_miscutl.c:39
_wmem_allocator_t
Internal memory allocator interface used by the wmem subsystem.
Definition wmem_allocator.h:34