Returns a pointer to a specified number of bytes, preserving the values pointed to by the Pointer parameter.
function SysReallocMem(P: Pointer; Size: Integer): Pointer;
void * SysReallocMem(void * P, int Size);
System
When implementing a custom memory manager, use SysReallocMem to change the size of a dynamically allocated chunk of memory. If SysReallocMem can't expand the memory block point to by P, it frees the referenced memory and copies the values to the newly allocated memory that is returned. If Size is less than the number of bytes pointed to by P, only the first Size bytes are preserved. Otherwise, the entire value of the memory pointed to by P is preserved in the newly allocated memory.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|