Поделиться через


CComHeap::Reallocate

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

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

Параметры

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

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

Возвращаемое значение

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

Заметки

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

Implemented using CoTaskMemRealloc.

Требования

Header: atlcommem.h

См. также

Основные понятия

CComHeap Class

CComHeap Members

CComHeap::Free