Blender V4.3
blender::GuardedAllocator Class Reference

#include <BLI_allocator.hh>

Public Member Functions

void * allocate (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 41 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 43 of file BLI_allocator.hh.

References MEM_mallocN_aligned().

◆ deallocate()

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

Definition at line 49 of file BLI_allocator.hh.

References MEM_freeN(), and ptr.


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