Alloc allocates a block of memory of specified size to the heap. The passed align value can never be greater than MaxAlign returned from GetInfo.
Parameters |
Description |
UPInt size |
Required size of the memory block. |
UPInt align |
Memory address alignment value of zero or power of two if alignment is supported. If unsupported, this argument can be ignored. |
Newly allocated block or null if allocation failed.