Wireshark 4.5.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
38WS_DLL_PUBLIC
39void *
40wmem_memdup(wmem_allocator_t *allocator, const void *source, const size_t size)
41G_GNUC_ALLOC_SIZE(3);
42
45WS_DLL_PUBLIC
46int
47wmem_compare_int(const void *a, const void *b);
48
49WS_DLL_PUBLIC
50int
51wmem_compare_uint(const void *a, const void *b);
52
56#ifdef __cplusplus
57}
58#endif /* __cplusplus */
59
60#endif /* __WMEM_MISCUTL_H__ */
61
62/*
63 * Editor modelines - https://www.wireshark.org/tools/modelines.html
64 *
65 * Local variables:
66 * c-basic-offset: 4
67 * tab-width: 8
68 * indent-tabs-mode: nil
69 * End:
70 *
71 * vi: set shiftwidth=4 tabstop=8 expandtab:
72 * :indentSize=4:tabSize=8:noTabs=true:
73 */
WS_DLL_PUBLIC void * wmem_memdup(wmem_allocator_t *allocator, const void *source, const size_t size) G_GNUC_ALLOC_SIZE(3)
Definition wmem_miscutl.c:19
WS_DLL_PUBLIC int wmem_compare_int(const void *a, const void *b)
Definition wmem_miscutl.c:33
Definition wmem_allocator.h:27