Function ndpi_malloc
Defined in File ndpi_api.h
Function Documentation
-
void *ndpi_malloc(size_t size)
Allocate memory using nDPI’s memory allocator. This function can be customized via ndpi_set_malloc() to use a custom allocator.
- Parameters:
size – Number of bytes to allocate
- Returns:
Pointer to allocated memory, or NULL on failure