36 void Init(
int elementSize,
int count);
74 void BuildFreeList(
int elementSize,
int count,
void *block);
A fixed-size allocator over one block of IOP memory.
Definition poolallocator.h:15
void * Alloc()
Take an element off the free list.
void Release()
Release the block Init() allocated.
void Init(int elementSize, int count)
Allocate a block and carve it into elements, rounding the element size up to a word.
void Free(void *element)
Return an element to the free list.
void InitWithBlock(int elementSize, int count, void *block)
Carve a caller-supplied block into elements.
The link a free element of a PoolAllocator stores in its first word.
Definition poolallocator.h:4
PoolLink * mNext
Definition poolallocator.h:5