Udostępnij za pośrednictwem


CLocalHeap::Reallocate

Call this method to reallocate memory allocated by this memory manager.

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

Parameters

  • p
    Pointer to memory previously allocated by this memory manager.

  • nBytes
    The requested number of bytes in the new memory block.

Return Value

Returns a pointer to the start of the newly allocated memory block.

Remarks

Call CLocalHeap::Free to free the memory allocated by this method.

Implemented using LocalReAlloc.

Requirements

Header: atlmem.h

See Also

Reference

CLocalHeap Class

CLocalHeap::Free

CLocalHeap::Allocate

Other Resources

CLocalHeap Members