Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

wmem_miscutl.h
1 /* wmem_miscutl.h
2 * Definitions for the Wireshark Memory Manager Misc Utilities
3 * Copyright 2013, Evan Huus <eapache@gmail.com>
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12 #ifndef __WMEM_MISCUTL_H__
13 #define __WMEM_MISCUTL_H__
14
15 #include <string.h>
16 #include <glib.h>
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif /* __cplusplus */
21
38 WS_DLL_PUBLIC
39 void *
40 wmem_memdup(wmem_allocator_t *allocator, const void *source, const size_t size)
41 G_GNUC_MALLOC;
42
46 #ifdef __cplusplus
47 }
48 #endif /* __cplusplus */
49
50 #endif /* __WMEM_MISCUTL_H__ */
51
52 /*
53 * Editor modelines - http://www.wireshark.org/tools/modelines.html
54 *
55 * Local variables:
56 * c-basic-offset: 4
57 * tab-width: 8
58 * indent-tabs-mode: nil
59 * End:
60 *
61 * vi: set shiftwidth=4 tabstop=8 expandtab:
62 * :indentSize=4:tabSize=8:noTabs=true:
63 */
wmem_memdup
WS_DLL_PUBLIC void * wmem_memdup(wmem_allocator_t *allocator, const void *source, const size_t size) G_GNUC_MALLOC
Definition: wmem_miscutl.c:19
_wmem_allocator_t
Definition: wmem_allocator.h:26