Function ndpi_flow_malloc
Defined in File ndpi_api.h
Function Documentation
-
void *ndpi_flow_malloc(size_t size)
Allocate memory for flow-specific data using nDPI’s flow allocator. Flow memory can use a separate allocator from general memory for better memory management in high-throughput scenarios.
- Parameters:
size – Number of bytes to allocate
- Returns:
Pointer to allocated memory, or NULL on failure