|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|
Bring-your-own allocator vtable. More...
#include <allocator.h>
Data Fields | |
| void *(* | malloc )(void *ctx, size_t size) |
| void *(* | realloc )(void *ctx, void *ptr, size_t old_size, size_t new_size) |
| void(* | free )(void *ctx, void *ptr, size_t size) |
| void * | ctx |
Bring-your-own allocator vtable.
All KEEL allocations go through this interface. Provide custom implementations for arena/pool allocation, tracking, or sandboxing.
| void *(* KlAllocator::malloc) (void *ctx, size_t size) |
Allocate size bytes
| void *(* KlAllocator::realloc) (void *ctx, void *ptr, size_t old_size, size_t new_size) |
Resize allocation
| void(* KlAllocator::free) (void *ctx, void *ptr, size_t size) |
Free allocation
| void* KlAllocator::ctx |
User-provided context