Freigeben über


CCRTAllocator::Allocate

Call this static function to allocate memory.

static void* Allocate(
   size_t nBytes 
) throw( );

Parameters

  • nBytes
    The number of bytes to allocate.

Return Value

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

Remarks

Allocates memory. See malloc for more details.

Requirements

Header: atlalloc.h

See Also

Concepts

CCRTAllocator Class

CCRTAllocator Members

CCRTAllocator::Reallocate

CCRTAllocator::Free