|
Blender V4.3
|
#include <BLI_allocator.hh>
Public Member Functions | |
| void * | allocate (size_t size, size_t alignment, const char *) |
| void | deallocate (void *ptr) |
This is a wrapper around malloc/free. Only use this when the GuardedAllocator cannot be used. This can be the case when the allocated memory might live longer than Blender's allocator. For example, when the memory is owned by a static variable.
Definition at line 80 of file BLI_allocator.hh.
|
inline |
Definition at line 87 of file BLI_allocator.hh.
References BLI_assert, int, POINTER_OFFSET, and ptr.
|
inline |
Definition at line 99 of file BLI_allocator.hh.
References free(), POINTER_OFFSET, and ptr.