Photon Fusion 2.0.3

Public Member Functions | List of all members
DynamicHeapInstance Class Reference

Dynamic heap instance. More...

Public Member Functions

void * Allocate (int size)
 Allocate a pointer. More...
 
void * AllocateArray< T > (int length)
 Allocate a pointer array. More...
 
void * AllocateArrayPointers< T > (int length)
 Allocate an array of pointers. More...
 
void * AllocateTracked< T > (bool root=false)
 Allocate a tracked pointer. More...
 
void * AllocateTrackedArray< T > (int length, bool root=false)
 Allocate a tracked pointer array. More...
 
void * AllocateTrackedArrayPointers< T > (int length, bool root=false)
 Allocate a tracked array of pointers. More...
 
 DynamicHeapInstance (params Type[] types)
 Create a dynamic heap instance. More...
 
void Free (void *ptr)
 Free a pointer. More...
 

Detailed Description

Dynamic heap instance.

Constructor & Destructor Documentation

◆ DynamicHeapInstance()

DynamicHeapInstance ( params Type[]  types)

Create a dynamic heap instance.

Parameters
typesTypes to allocate.

Member Function Documentation

◆ Allocate()

void* Allocate ( int  size)

Allocate a pointer.

Parameters
sizeSize to allocate.
Returns
Pointer to allocated memory.

◆ AllocateArray< T >()

void* AllocateArray< T > ( int  length)

Allocate a pointer array.

Parameters
lengthLength of array.
Template Parameters
TType of array.
Returns
Pointer to allocated memory.
Type Constraints
T :unmanaged 

◆ AllocateArrayPointers< T >()

void* AllocateArrayPointers< T > ( int  length)

Allocate an array of pointers.

Parameters
lengthLength of array.
Template Parameters
TType of array.
Returns
Pointer to allocated memory.
Type Constraints
T :unmanaged 

◆ AllocateTracked< T >()

void* AllocateTracked< T > ( bool  root = false)

Allocate a tracked pointer.

Parameters
rootSignal if the pointer is a root.
Template Parameters
TType of pointer.
Returns
Pointer to allocated memory.
Type Constraints
T :unmanaged 

◆ AllocateTrackedArray< T >()

void* AllocateTrackedArray< T > ( int  length,
bool  root = false 
)

Allocate a tracked pointer array.

Parameters
lengthLength of array.
rootSignal if the pointer is a root.
Template Parameters
TType of array.
Returns
Pointer to allocated memory.
Type Constraints
T :unmanaged 

◆ AllocateTrackedArrayPointers< T >()

void* AllocateTrackedArrayPointers< T > ( int  length,
bool  root = false 
)

Allocate a tracked array of pointers.

Parameters
lengthLength of array.
rootSignal if the pointer is a root.
Template Parameters
TType of array.
Returns
Pointer to allocated memory.
Type Constraints
T :unmanaged 

◆ Free()

void Free ( void *  ptr)

Free a pointer.

Parameters
ptrPointer to free.