ReallocInPlace attempts to reallocate the memory to a new size without moving it. If such reallocation succeeds true is returned, otherwise false is returned and the previous allocation remains the same.
Parameters |
Description |
void* oldPtr |
Pointer to the block of memory. |
UPInt oldSize |
Original size of the block of memory. |
UPInt newSize |
New required size of the block. |
UPInt align |
A Boolean value of true if reallocation succeeds otherwise false.