Core class that represents a manager for the memory.
More...
Core class that represents a manager for the memory.
◆ Allocate()
| void * Nz::MemoryManager::Allocate |
( |
std::size_t |
size, |
|
|
bool |
multi = false, |
|
|
const char * |
file = nullptr, |
|
|
unsigned int |
line = 0 |
|
) |
| |
|
static |
Allocates memory.
- Returns
- Raw memory allocated
- Parameters
-
| size | Size to allocate multi Array or not |
| file | File of the allocation |
| line | Line of the allocation in the file |
◆ EnableAllocationFilling()
| void Nz::MemoryManager::EnableAllocationFilling |
( |
bool |
allocationFilling | ) |
|
|
static |
Enables the filling of the allocation.
- Parameters
-
| allocationFilling | If true, sets the rest of the allocation block to '0xFF' |
◆ EnableAllocationLogging()
| void Nz::MemoryManager::EnableAllocationLogging |
( |
bool |
logAllocations | ) |
|
|
static |
Enables the logging of the allocation.
- Parameters
-
| logAllocations | If true, registers every allocation |
◆ Free()
| void Nz::MemoryManager::Free |
( |
void * |
pointer, |
|
|
bool |
multi = false |
|
) |
| |
|
static |
Frees the pointer.
- Parameters
-
| pointer | Pointer to free |
| multi | Array or not |
◆ GetAllocatedBlockCount()
| unsigned int Nz::MemoryManager::GetAllocatedBlockCount |
( |
| ) |
|
|
static |
Gets the number of allocated blocks.
- Returns
- Number of allocated blocks
◆ GetAllocatedSize()
| std::size_t Nz::MemoryManager::GetAllocatedSize |
( |
| ) |
|
|
static |
Gets the allocated size.
- Returns
- Size of total allocation
◆ GetAllocationCount()
| unsigned int Nz::MemoryManager::GetAllocationCount |
( |
| ) |
|
|
static |
Gets the number of allocations.
- Returns
- Number of allocations
◆ IsAllocationFillingEnabled()
| bool Nz::MemoryManager::IsAllocationFillingEnabled |
( |
| ) |
|
|
static |
Checks whether the filling of allocation is enabled.
- Returns
- true if it is filling
◆ IsAllocationLoggingEnabled()
| bool Nz::MemoryManager::IsAllocationLoggingEnabled |
( |
| ) |
|
|
static |
Checks whether the logging of allocation is enabled.
- Returns
- true if it is logging
◆ NextFree()
| void Nz::MemoryManager::NextFree |
( |
const char * |
file, |
|
|
unsigned int |
line |
|
) |
| |
|
static |
Sets the next free.
- Parameters
-
| file | Name of the file |
| line | Line in the file |
The documentation for this class was generated from the following files: