[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Re-allocate memory on the heap
Source position: heaph.inc line 99
function ReAllocMem( |
var p: pointer; |
Size: PtrInt |
):pointer; |
ReAllocMemresizes the memory pointed to by Pso it has size Size. The value of Pmay change during this operation. The contents of the memory pointed to by P(if any) will be copied to the new location, but may be truncated if the newly allocated memory block is smaller in size. If a larger block is allocated, only the used memory is initialized, extra memory will not be zeroed out.
Note that Pmay be nil, in that case the behaviour of ReAllocMemis equivalent to Getmem.
|
Allocate new memory on the heap |
|
|
Release allocated memory |