#include <b2BlockAllocator.h>
Public Member Functions | |
void * | Allocate (int32 size) |
Allocate memory. This uses b2Alloc if the size is larger than b2_maxBlockSize. | |
void | Free (void *p, int32 size) |
Free memory. This uses b2Free if the size is larger than b2_maxBlockSize. | |
void | Clear () |
uint32 | GetNumGiantAllocations () const |
Returns the number of allocations larger than the max block size. | |
This is a small object allocator used for allocating small objects that persist for more than one time step. See: http://www.codeproject.com/useritems/Small_Block_Allocator.asp