Quantum 3 3.0.13

Public Member Functions | 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

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.
 
- 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...
 
abstract AllocatorVTableManaged GetManagedVTable ()
 Create a allocation operation table to be passed into native parts of the engine. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Photon.Deterministic.Native.Allocator
abstract void Clear (void *dest, int count)
 Writes the desired number zeroed bytes to the specified memory location. More...
 

Detailed Description

A specific allocator that tracks allocations in Debug mode.