SysAllocPaged::ReallocInPlace

SysAllocPaged::ReallocInPlace
virtual bool ReallocInPlace(void* oldPtr, UPInt oldSize, UPInt newSize, UPInt align);
Description

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
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. 
Return Value

A Boolean value of true if reallocation succeeds otherwise false.