C4 Engine
C4 Engine API Documentation

class MemoryMgr

Defined in:  C4Memory.h
The Memory Manager class.

class MemoryMgr

Member Functions
MemoryMgr::CopyMemory Copies a block of memory.
MemoryMgr::FillMemory Fills a block of memory with an 8-bit value.
MemoryMgr::ClearMemory Clears a block of memory to zero.
MemoryMgr::CalculatePoolSize Calculates the size that a pool needs to be in order to store a given number of equal-size blocks.
The MemoryMgr class is responsible for handling memory allocation and deallocation. The Memory Manager supplies custom overrides for the new and delete operators that are optimized for typical allocation patterns arising in games and virtual reality software.
See Also