nw::os::IAllocator Class

Syntax

class IAllocator

Description

The memory allocator interface.

Member Constants

S DEFAULT_ALIGNMENT The default value when the alignment specification has been omitted.
S CACHE_LINE_ALIGNMENT Cache alignment.

Member Functions

Allocating and Freeing Memory
PV Alloc Allocates memory.
PV Free Frees memory.
Utilities
Alloc Allocates memory when the alignment specification has been omitted.
AllocAndClear Allocates memory and clears with the specified byte data.
AllocAndConstruct Allocates the memory required for the specified number of objects and calls a constructor.
AllocAndFill Allocates the memory required for the specified number of objects and copies the specified object.
DestructAndFree Calls a destructor for the specified number of objects and frees memory.
Other
V ~IAllocator Destructor.

CONFIDENTIAL