Wireshark 4.5.0
The Wireshark network protocol analyzer
|
Functions | |
WS_DLL_PUBLIC void * | wmem_memdup (wmem_allocator_t *allocator, const void *source, const size_t size) G_GNUC_ALLOC_SIZE(3) |
WS_DLL_PUBLIC int | wmem_compare_int (const void *a, const void *b) |
WS_DLL_PUBLIC int | wmem_compare_uint (const void *a, const void *b) |
WS_DLL_PUBLIC char * | wmem_strdup (wmem_allocator_t *allocator, const char *src) G_GNUC_MALLOC |
WS_DLL_PUBLIC char * | wmem_strndup (wmem_allocator_t *allocator, const char *src, const size_t len) G_GNUC_MALLOC |
WS_DLL_PUBLIC char * | wmem_strdup_printf (wmem_allocator_t *allocator, const char *fmt,...) G_GNUC_MALLOC G_GNUC_PRINTF(2 |
WS_DLL_PUBLIC char * | wmem_strdup_vprintf (wmem_allocator_t *allocator, const char *fmt, va_list ap) G_GNUC_MALLOC |
WS_DLL_PUBLIC const uint8_t * | ws_memmem (const void *haystack, size_t haystack_len, const void *needle, size_t needle_len) |
A collection of misc. utility functions for wmem.
A collection of utility function for operating on C strings with wmem.
WS_DLL_PUBLIC int wmem_compare_int | ( | const void * | a, |
const void * | b | ||
) |
Generic GCompareFunc implementations to compare signed/unsigned integer
WS_DLL_PUBLIC void * wmem_memdup | ( | wmem_allocator_t * | allocator, |
const void * | source, | ||
const size_t | size | ||
) |
Copies a block of memory.
allocator | The allocator object to use to allocate memory to copy into. |
source | The pointer to the memory block to copy. |
size | The amount of memory to copy. |
WS_DLL_PUBLIC const uint8_t * ws_memmem | ( | const void * | haystack, |
size_t | haystack_len, | ||
const void * | needle, | ||
size_t | needle_len | ||
) |
Return the first occurrence of needle in haystack.
haystack | The data to search |
haystack_len | The length of the search data |
needle | The string to look for |
needle_len | The length of the search string |