C++ SDK Documentation
12.0.0
|
A pool-based allocator that is provided to simplify memory management for UDF implementors. More...
Public Member Functions | |
virtual void * | alloc (size_t size)=0 |
virtual void | free (void *ptr, size_t size) |
A pool-based allocator that is provided to simplify memory management for UDF implementors.
|
pure virtual |
Allocate size_t bytes of memory on a pool. This memory is guaranteed to persist beyond the destroy call but might have been destroyed when the dtor is run or freed explicitly.
|
inlinevirtual |
Free size_t bytes of memory allocated for ptr. Caution: safety is only guaranteed if free() is called on the same VTAllocator object that performed the alloc()