Partager via


CCRTAllocator::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 realloc for more details.

Requirements

Header: atlalloc.h

See Also

Reference

CCRTAllocator Class

CCRTAllocator::Allocate

CCRTAllocator::Free