Memory::AllocAutoHeap

Memory::AllocAutoHeap
static void* SF_STDCALL AllocAutoHeap(const void * p, UPInt size);
static void* SF_STDCALL AllocAutoHeap(const void * p, UPInt size, UPInt align);
static void* SF_STDCALL AllocAutoHeap(const void * p, UPInt size, const AllocInfo& info);
static void* SF_STDCALL AllocAutoHeap(const void * p, UPInt size, UPInt align, const AllocInfo& info);
Description

AllocAutoHeap allocates memory block while automatically identifying heap and allocation id based on the specified address. Aligned memory allocations can be performed by calling this method.

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

Global memory heap.