nw::os Namespace

Description

Namespace for the operating system API.

Classes

nw::os::IAllocator The memory allocator interface.
nw::os::NullLockObject An empty locked object.

Structures

nw::os::SafeFreeFunctor A deleter for freeing memory with SafeFree.

typedef Definitions

LockObject Lock object that performs exclusively.

Functions

Memory Allocation and Release
AllocateAndFill Allocates memory and fills the allocated region with the specified value.
AllocateAndFillN Allocates memory of the specified size, and fills the allocated region with the specified value.
AllocateAndAssignN Allocates memory of the specified size, and assigns the allocated region with the specified value.
AllocateAndCopyString Allocates only the required amount of memory, and copies a string into the allocated region.
SafeFree Inline function for setting memory to zero after it has been freed.
SafeFreeAll Function for using SafeFree to free the memory for all container elements.
Other
MemCpy Copies memory.
IsDeviceMemory Determines whether the address is for device memory.
SNPrintf
VSNPrintf
Halt

CONFIDENTIAL