Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Faro::MemoryManager Class Reference

#include <MemoryManager.hpp>

Static Public Member Functions

template<class T , typename... Args>
static T * New (Args... args)
 
template<class T >
static T * Alloc (uint32 amount)
 
static void * Alloc (uint32 size)
 
static void Free (void *address)
 
template<class T >
static void Delete (T *address)
 
template<class T >
static void Set (T *address, uint8 value, uint32 amount)
 
template<class T >
static void Zero (T *address, uint32 amount=1)
 
template<class T >
static void SafeDelete (T *&objectPtr)
 
template<class T >
static void Copy (T *source, T *destination, uint32 elementCount=1)
 

Member Function Documentation

◆ Alloc() [1/2]

template<class T >
static T * Faro::MemoryManager::Alloc ( uint32  amount)
inlinestatic

◆ Alloc() [2/2]

void * Faro::MemoryManager::Alloc ( uint32  size)
static

◆ Copy()

template<class T >
static void Faro::MemoryManager::Copy ( T *  source,
T *  destination,
uint32  elementCount = 1 
)
inlinestatic

◆ Delete()

template<class T >
static void Faro::MemoryManager::Delete ( T *  address)
inlinestatic

◆ Free()

void Faro::MemoryManager::Free ( void *  address)
static

◆ New()

template<class T , typename... Args>
static T * Faro::MemoryManager::New ( Args...  args)
inlinestatic

◆ SafeDelete()

template<class T >
static void Faro::MemoryManager::SafeDelete ( T *&  objectPtr)
inlinestatic

◆ Set()

template<class T >
static void Faro::MemoryManager::Set ( T *  address,
uint8  value,
uint32  amount 
)
inlinestatic

◆ Zero()

template<class T >
static void Faro::MemoryManager::Zero ( T *  address,
uint32  amount = 1 
)
inlinestatic

The documentation for this class was generated from the following files: