Contains the state of the physical heap, after calling ApuHeapGetState.
typedef struct ApuHeapState {
UINT32 bytesFree;
UINT32 bytesAllocated;
UINT32 bytesLost;
UINT32 maximumBlockSizeAvailable;
UINT32 allocationCount;
} ApuHeapState;
bytesFree
Size of all unallocated regions.
bytesAllocated
Size of all allocated regions that are visible to the title.
bytesLost
Size of all memory lost to alignment requests and fragmented blocks too small to allocate.
maximumBlockSizeAvailable
Largest block available, though actual space available can be less due to alignment requirements.
allocationCount
Count all allocated blocks.
Header: Declared in apu.h.
Library: Use acphal.lib.