Box2D: b2BlockAllocator Class Reference

| Box2D 2.4.0 A 2D physics engine for games

Public Member Functions | List of all members
b2BlockAllocator Class Reference

`#include <b2_block_allocator.h>`

## 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

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

- /build/box2d/src/box2d-adaedf1772ede7420bc9ee569c8cba7952db91a0/include/box2d/b2_block_allocator.h