Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
PoolInitRec Struct Reference

#include <GameMemory.h>

Public Attributes

const char * poolName
 name of the pool; by convention, "dmaPool_XXX" where XXX is allocationSize
 
Int allocationSize
 size, in bytes, of the pool.
 
Int initialAllocationCount
 initial number of blocks to allocate.
 
Int overflowAllocationCount
 when the pool runs out of space, allocate more blocks in this increment
 

Detailed Description

This class is purely a convenience used to pass optional arguments to initMemoryManager(), and by extension, to createDynamicMemoryAllocator(). You can specify how many sub-pools you want, what size each is, what the allocation counts are to be, etc. Most apps will construct an array of these to pass to initMemoryManager() and never use it elsewhere.

Definition at line 226 of file GameMemory.h.

Member Data Documentation

◆ allocationSize

Int PoolInitRec::allocationSize

size, in bytes, of the pool.

Definition at line 229 of file GameMemory.h.

◆ initialAllocationCount

Int PoolInitRec::initialAllocationCount

initial number of blocks to allocate.

Definition at line 230 of file GameMemory.h.

◆ overflowAllocationCount

Int PoolInitRec::overflowAllocationCount

when the pool runs out of space, allocate more blocks in this increment

Definition at line 231 of file GameMemory.h.

◆ poolName

const char* PoolInitRec::poolName

name of the pool; by convention, "dmaPool_XXX" where XXX is allocationSize

Definition at line 228 of file GameMemory.h.


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