Condividi tramite


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

Reference

CComAllocator Class

CComAllocator::Allocate

CComAllocator::Free