20 void Init(
int nBlockSize,
int nNumBlocks,
void *pMemory);
48 Node *Setup(
int nBlockSize,
int nNumBlocks,
void *pMemory);
Pool of equal blocks carved from a region, each free block linking to the next.
Definition blockpool.h:9
void Init(int nBlockSize, int nNumBlocks, void *pMemory)
Take over a region as a chain of free blocks.
void * Alloc()
Hand out the first free block.
void Free(void *pBlock)
Return a block to the head of the chain.
A free block, which starts with the link to the next one.
Definition blockpool.h:41
Node * mNext
Definition blockpool.h:42