Alloc allocates memory block. If size is 0, Alloc will allocate a tiny block and return a valid pointer. Aligned memory allocations are made by passing a value of power of two for the align parameter.
Parameters |
Description |
UPInt size |
Size of the memory block to allocate. |
const AllocInfo* info = 0 |
Debug information optionally stored with every allocation. |
UPInt align |
A value of zero or power of two for custom memory alignments. |
Pointer to the newly allocated memory or null if no space is available.