The Unity implementation of the Quantum native memory allocator. More...
Public Member Functions | |
sealed override void * | Alloc (int count) |
Allocates memory from the unmanaged memory of the process. | |
sealed override void * | Alloc (int count, int alignment) |
Allocates memory from the unmanaged memory of the process with a desired alignment. | |
sealed override void | Free (void *ptr) |
Frees memory previously allocated by this allocator. | |
sealed override Native.AllocatorVTableManaged | GetManagedVTable () |
Create a allocation operation table to be passed into native parts of the engine. | |
Public Member Functions inherited from Photon.Deterministic.Native.Allocator | |
T * | Alloc< T > () |
Allocate native memory for a specific type. More... | |
void * | AllocAndClear (int count) |
Allocate and clear native memory. More... | |
void * | AllocAndClear (int count, int alignment) |
Allocate and clear native memory. More... | |
T * | AllocAndClear< T > () |
Allocate and clear native memory for a specific type. More... | |
void | Dispose () |
Disposes the allocator and logs memory leaks in debug mode. More... | |
void * | Expand (void *buffer, int currentSize, int newSize) |
Expands the allocated memory to a new size by copying the old contents and freeing the old memory. More... | |
T * | ExpandArray< T > (T *buffer, int currentSize, int newSize) |
Expands the allocated memory of the array of the type to a new size by copying the old contents and freeing the old memory. More... | |
Protected Member Functions | |
sealed override void | Clear (void *dest, int count) |
Writes the desired number zeroed bytes to the specified memory location. | |
The Unity implementation of the Quantum native memory allocator.