|
|
| void * MFHeap_Realloc |
( |
void * |
pMem, |
|
|
uint32 |
bytes |
|
) |
|
|
|
|
Allocates a new memory block of the specified size and copies the contents of the previous buffer. The old buffer is safely released. - Parameters:
-
| pMem | Pointer to block of memory being re-allocated. |
| bytes | Numer of bytes to allocate for the new buffer. |
- Returns:
- A pointer to the new allocated memory.
- Remarks:
- If the new allocation is smaller than the previous allocation, only the number of bytes that fit into the new allocation will be copied. The remaining memory will be lost. Memory will be allocated using the same heap manager as the initial allocation.
- See also:
- MFHeap_Alloc()
MFHeap_Free()
|
|