Quantum 3 3.0.14

Public Member Functions | Protected Member Functions | List of all members
Photon.Deterministic.Native.MSVCRTAllocator Class Reference

The MSVCRT native allocator implementation. More...

Inheritance diagram for Photon.Deterministic.Native.MSVCRTAllocator:
Photon.Deterministic.Native.PInvokeAllocator Photon.Deterministic.Native.Allocator

Public Member Functions

sealed override AllocatorVTableManaged GetManagedVTable ()
 Create a allocation operation table to be passed into native parts of the engine.
 
- Public Member Functions inherited from Photon.Deterministic.Native.PInvokeAllocator
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.
 
- 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.
 

Detailed Description

The MSVCRT native allocator implementation.