|
C Container Collection (CCC)
|
A bundle of arguments to pass to the user-implemented Allocator function interface. This ensures clarity in inputs and expected outputs to an allocator function the user wishes to use for managing containers. Additional context can be provided for more complex allocation schemes. More...
#include <types.h>
A bundle of arguments to pass to the user-implemented Allocator function interface. This ensures clarity in inputs and expected outputs to an allocator function the user wishes to use for managing containers. Additional context can be provided for more complex allocation schemes.
Data Fields | |
| void * | input |
| size_t | bytes |
| void * | context |
| size_t CCC_Allocator_context::bytes |
The bytes being requested from the allocator. 0 is a free request.
| void* CCC_Allocator_context::context |
Additional state to pass to the allocator to help manage memory.
| void* CCC_Allocator_context::input |
The input to the allocation function. NULL or previously allocated.