SysAllocWinAPI::ReallocInPlace

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

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
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 
Memory address alignment value that the allocator must provide. This value always equals to the one passed to the original Alloc call. (Same meaning as in Free function.) 
Return Value

A Boolean value of true if reallocation succeeds otherwise false.