BlockAllocator

Allocator allocate large blocks and return smaller blocks. When there is no more blocks then next large block is allocated. By default freeing memory only returns it to allocator. To free large memory chunks freeMemory function is used. freeMemory function return to system memory even if chunk blocks wasn't freed.

Members

Functions

freeBlock
void freeBlock(void* block)

Return block to allocator for further use.

freeMemory
void freeMemory()

Free whole used memory. This function return to system all memory chunks even if not every black was freed.

getBlock
void* getBlock()

Get new block. Allocator automatically allocate next memory chunk if needed.

Meta