nw::os::AllocateAndAssignN Function

Syntax

template <typename TObject>
TObject * AllocateAndAssignN(
     os::IAllocator * allocator,
     size_t size,
     TObject object
);

Template Arguments

Name Description
TObject Type of object to allocate.

Arguments

Name Description
in allocator Allocator.
in size Size to be allocated.
in object Value to fill with.

Return Values

Allocated object.

Description

Allocates memory of the specified size, and assigns the allocated region with the specified value.


CONFIDENTIAL