Quantum 3
3.1.0
Native is a collections of tools that interact with the platform's native code directly like memory allocation, copy operations, etc. More...
Classes | |
| class | Allocator |
| Represents native memory allocations and is used in many places across the engine. More... | |
| class | LIBCAllocator |
| The libc native allocator implementation. More... | |
| class | LIBCUtility |
| The libc native memory utility implementation. More... | |
| class | MSVCRTAllocator |
| The MSVCRT native allocator implementation. More... | |
| class | MSVCRTUtility |
| The MSVCRT native memory utility implementation. More... | |
| class | PInvokeAllocator |
| A specific allocator that tracks allocations in Debug mode. More... | |
| class | Utility |
| Represents a collection of memory utility functions that interact with the platform's native code directly. More... | |
Static Public Member Functions | |
| static int | GetAlignmentForArrayElement (int elementSize) |
| Calculates the alignment for arrays. More... | |
| static int | RoundUpToAlignment (int size, int alignment) |
| Rounds the size up to the nearest multiple of the alignment. More... | |
Static Public Attributes | |
| static Utility | Utils |
| A static fields that is expected to be set before the engine is initialized. More... | |
Native is a collections of tools that interact with the platform's native code directly like memory allocation, copy operations, etc.
|
static |
Rounds the size up to the nearest multiple of the alignment.
Supports up to alignment 64.
| size | The size to round. |
| alignment | The alignment to use. |
| InvalidOperationException | Is raised when the alignment is not supported. |
|
static |
Calculates the alignment for arrays.
| elementSize | The array element count. |
|
static |
A static fields that is expected to be set before the engine is initialized.