ReallocInPlace attempts to reallocate memory to a new size without moving it. If such reallocation succeeds true is returned, otherwise false is returned and the previous allocation remains unchanged. This method is provided as an optimization for internal Realloc implementation for large blocks; it need not be implemented.
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 |
Value of zero or power of two for memory address alignment, if supported. |
A Boolean value of true if reallocation succeeds otherwise false.