Memory::Alloc

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

Alloc allocates memory. If size is 0, Alloc will allocate a tiny block and return a valid pointer. Aligned memory allocations are possible by calls to Alloc/Free and is not supported by Realloc.

Parameters
Parameters 
Description 
UPInt size 
The size of the memory block to allocate. 
UPInt align 
A value of zero or power of two for aligning memory. 
const AllocInfo& info 
Debugging support optionally stored with every allocation. 
See Also