uvhttp_allocator.h
Unified memory allocator with compile-time optimization.
This module provides a unified memory allocation interface that can be configured at compile time to use either system allocator or mimalloc. All functions are inline-optimized for zero runtime overhead.
Functions
uvhttp_alloc(size_t size)
Return Type: void *
uvhttp_free(void *ptr)
Return Type: void
uvhttp_realloc(void *ptr, size_t size)
Return Type: void *
uvhttp_calloc(size_t nmemb, size_t size)
Return Type: void *
uvhttp_allocator_name(void)
Return Type: const char *
Get the name of the current allocator.
Returns: const char* Name of the allocator ("mimalloc", "custom", or "system")
Note: If mimalloc is requested but not available, compilation will fail