class PoolAlloc::MemBlock

A single block able to hold ElemsPerBlock elements.

Public

Constructors

MemBlock

MemBlock(u8 *blockData)

Methods

~MemBlock

~MemBlock()

Alloc

u8 *Alloc()

Returns the first free address and increments the free pointer.

Caller needs to ensure the remaining block size is adequate before calling.

Dealloc

void Dealloc(void *data)

Deallocates the provided pointer.

Fields

BlockData

u8 * BlockData

FreePtr

u32 FreePtr

FreeElems

u32 FreeElems

NextBlock

MemBlock * NextBlock