CWin32Heap::Reallocate

Reallocates a block of memory from the heap object.

virtual void* Reallocate( 
   void* p, 
   size_t nBytes  
) throw( );

Parameters

  • p
    Pointer to the block of memory to reallocate.

  • nBytes
    The new size in bytes of the allocated block. The block can be made larger or smaller.

Return Value

Returns a pointer to the newly allocated memory block.

Remarks

If p is NULL, it's assumed that the memory block has not yet been allocated and CWin32Heap::Allocate is called, with an argument of nBytes.

Requirements

Header: atlmem.h

See Also

Reference

CWin32Heap Class

HeapReAlloc

CWin32Heap::Allocate

CWin32Heap::Free