다음을 통해 공유


CComAllocator::Reallocate

Call this static function to reallocate memory.

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

Parameters

  • p
    Pointer to the allocated memory.

  • nBytes
    The number of bytes to reallocate.

Return Value

Returns a void pointer to the allocated space, or NULL if there is insufficient memory

Remarks

Resizes the amount of allocated memory. See CoTaskMemRealloc for more details.

Requirements

Header: atlbase.h

See Also

Concepts

CComAllocator Class

CComAllocator Members

CComAllocator::Allocate

CComAllocator::Free