21 #ifndef __ANTARES_LIBS_MEMORY_MEMORY_HXX__
22 #define __ANTARES_LIBS_MEMORY_MEMORY_HXX__
39 inline void Memory::Allocate(T*& out,
size_t size)
46 inline bool Memory::Null(
const T* out)
52 inline bool Memory::StrictNull(
const T* out)
58 inline U* Memory::RawPointer(U* array)
64 inline void Memory::Zero(uint count, U* array)
66 (void)::memset(array, 0,
sizeof(U) * count);
70 inline void Memory::Assign(uint count, U* array,
const U& value)
72 for (uint i = 0; i != count; ++i)
static void Release(T *&pointer)
Release a raw pointer.
Definition: memory.hxx:32
uint64_t processID() const
Get the process ID of the application.
Definition: memory.hxx:26