Quantum 3 3.1.0

List of all members
Photon.Deterministic.Native.PInvokeAllocator Class Reference

A specific allocator that tracks allocations in Debug mode. More...

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

Additional Inherited Members

- Public Member Functions inherited from Photon.Deterministic.Native.Allocator
void * Alloc (int count, [CallerFilePath] string callerFilePath=null, [CallerLineNumber] int callerLineNumber=0)
 Allocates memory from the unmanaged memory of the process. More...
 
void * Alloc (int count, int alignment, [CallerFilePath] string callerFilePath=null, [CallerLineNumber] int callerLineNumber=0)
 Allocates memory from the unmanaged memory of the process with a desired alignment. More...
 
T * Alloc< T > ([CallerFilePath] string callerFilePath=null, [CallerLineNumber] int callerLineNumber=0)
 Allocate native memory for a specific type. More...
 
void * AllocAndClear (int count, [CallerFilePath] string callerFilePath=null, [CallerLineNumber] int callerLineNumber=0)
 Allocate and clear native memory. More...
 
void * AllocAndClear (int count, int alignment, [CallerFilePath] string callerFilePath=null, [CallerLineNumber] int callerLineNumber=0)
 Allocate and clear native memory. More...
 
T * AllocAndClear< T > ([CallerFilePath] string callerFilePath=null, [CallerLineNumber] int callerLineNumber=0)
 Allocate and clear native memory for a specific type. More...
 
void Clear (void *dest, int count)
 Writes the desired number zeroed bytes to the specified memory location. More...
 
void Dispose ()
 Disposes the allocator and logs memory leaks in debug mode. More...
 
void * Expand (void *buffer, int currentSize, int newSize, [CallerFilePath] string callerFilePath=null, [CallerLineNumber] int callerLineNumber=0)
 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, [CallerFilePath] string callerFilePath=null, [CallerLineNumber] int callerLineNumber=0)
 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...
 
void Free (void *ptr)
 Frees memory previously allocated by this allocator. More...
 

Detailed Description

A specific allocator that tracks allocations in Debug mode.