Box2D  2.2
Box2D API Reference for www.kobold2d.com developers
 All Classes Files Functions Variables Enumerations Enumerator Defines
b2BlockAllocator Class Reference

#include <b2BlockAllocator.h>

List of all members.

Public Member Functions

void * Allocate (int32 size)
 Allocate memory. This will use b2Alloc if the size is larger than b2_maxBlockSize.
void Free (void *p, int32 size)
 Free memory. This will use b2Free if the size is larger than b2_maxBlockSize.
void Clear ()

Detailed Description

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


Member Function Documentation

void* b2BlockAllocator::Allocate ( int32  size)

Allocate memory. This will use b2Alloc if the size is larger than b2_maxBlockSize.

void b2BlockAllocator::Free ( void *  p,
int32  size 
)

Free memory. This will use b2Free if the size is larger than b2_maxBlockSize.


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