Memory::AllocInHeap

Memory::AllocInHeap
static void* SF_STDCALL AllocInHeap(MemoryHeap* heap, UPInt size);
static void* SF_STDCALL AllocInHeap(MemoryHeap* heap, UPInt size, UPInt align);
static void* SF_STDCALL AllocInHeap(MemoryHeap* heap, UPInt size, const AllocInfo& info);
static void* SF_STDCALL AllocInHeap(MemoryHeap* heap, UPInt size, UPInt align, const AllocInfo& info);
Description

AllocInHeap allocates memory in the specified heap. Aligned memory allocations can be performed by calling this method. Functions with AllocInfo argument are provided to ensure that AllocInfo can be passed by reference with extended lifetime.

Parameters
Parameters 
Description 
MemoryHeap* heap 
Pointer to MemoryHeap which is used for allocation. 
UPInt size 
The size of the memory block. 
UPInt align 
A value of zero or power of two for aligning memory. 
const AllocInfo& info 
Debug support stored with every allocation. 
Return Value

Dynamic memory heap.