C Container Collection (CCC)
Loading...
Searching...
No Matches
CCC_Allocator_context Struct Reference

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>

Detailed Description

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
 

Field Documentation

◆ bytes

size_t CCC_Allocator_context::bytes

The bytes being requested from the allocator. 0 is a free request.

◆ context

void* CCC_Allocator_context::context

Additional state to pass to the allocator to help manage memory.

◆ input

void* CCC_Allocator_context::input

The input to the allocation function. NULL or previously allocated.


The documentation for this struct was generated from the following file: