Share via


CCRTAllocator::Reallocate

 

Call this static function to reallocate memory.

Syntax

      static __declspec(allocator) 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

CCRTAllocator Class
CCRTAllocator::Allocate
CCRTAllocator::Free