17 return (
char*)allocator + allocator->
size;
24 if (ptr ==
nullptr)
return;
25 if (ptr == (
char*)allocator + allocator->
size)
return;
Memory allocation methods.
void clod_allocator_destroy(clod_allocator *allocator)
clod_allocator * clod_allocator_create(const struct clod_allocator_opts *opts)
Configuration options for libclod's memory allocator.
size_t allocator_opts_size
Size of this struct for future-proofing.
uint32_t size
Size of backing memory.