Blender  V3.3
Public Member Functions | List of all members
blender::GuardedAllocator Class Reference

#include <BLI_allocator.hh>

Public Member Functions

voidallocate (size_t size, size_t alignment, const char *name)
 
void deallocate (void *ptr)
 

Detailed Description

Use Blender's guarded allocator (aka MEM_*). This should always be used except there is a good reason not to use it.

Definition at line 40 of file BLI_allocator.hh.

Member Function Documentation

◆ allocate()

void* blender::GuardedAllocator::allocate ( size_t  size,
size_t  alignment,
const char *  name 
)
inline

Definition at line 42 of file BLI_allocator.hh.

References MEM_mallocN_aligned, and size().

◆ deallocate()

void blender::GuardedAllocator::deallocate ( void ptr)
inline

Definition at line 48 of file BLI_allocator.hh.

References MEM_freeN, and ptr.


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