nw::demo::DemoAllocator::Alloc Member Function

Syntax

virtual void * Alloc(
     size_t size,
     u8 alignment
);

Arguments

Name Description
in size Memory size to be allocated.
in alignment Alignment.

Return Values

Returns the allocated memory address.

Description

Allocates memory from main memory.

nw::demo::DemoAllocator::Alloc Member Function

Syntax

void * Alloc(
     size_t size
);
template <typename TObject>
TObject * Alloc(
     int count,
     u8 alignment = DEFAULT_ALIGNMENT
);

List of Overloaded Member Functions

Alloc ( size_t ) Allocates memory when the alignment specification has been omitted.
Alloc ( int, u8 ) Allocates the memory needed for the specified number of objects.

Description of Alloc ( size_t )

Note that overload of the base class is hidden if override of Alloc(size, alignment) is defined for a derivative class. To directly use this function from a reference to a sub-class, describe this code: IAllocator::Alloc;

Description of Alloc ( int, u8 )

Allocates the memory needed for the specified number of objects.


CONFIDENTIAL