CommonLibSSE NG
Loading...
Searching...
No Matches
RE::NiMemManager Class Reference

#include <NiMemManager.h>

Public Member Functions

void * Allocate (std::size_t a_sizeInBytes, std::size_t a_alignment, NiMemEventType a_eventType, bool a_provideAccurateSizeOnDeallocate=false, const char *a_sourceFile=nullptr, std::int32_t a_sourceLine=-1, const char *a_function=nullptr)
 
void Deallocate (void *a_mem, NiMemEventType a_eventType, std::size_t a_sizeinBytes=static_cast< std::size_t >(-1))
 
void * Reallocate (void *a_mem, std::size_t a_sizeInBytes, std::size_t a_alignment, NiMemEventType a_eventType, bool a_provideAccurateSizeOnDeallocate=false, std::size_t a_sizeCurrent=static_cast< std::size_t >(-1), const char *a_sourceFile=nullptr, std::int32_t a_sourceLine=-1, const char *a_function=nullptr)
 
bool TrackAllocate (const void *const a_mem, std::size_t a_sizeInBytes, NiMemEventType a_eventType, const char *a_sourceFile=nullptr, std::int32_t a_sourceLine=-1, const char *a_function=nullptr)
 
bool TrackDeallocate (const void *const a_mem, NiMemEventType a_eventType)
 

Static Public Member Functions

static NiMemManagerGetSingleton ()
 

Public Attributes

NiAllocatorallocator
 

Member Function Documentation

◆ Allocate()

void * RE::NiMemManager::Allocate ( std::size_t  a_sizeInBytes,
std::size_t  a_alignment,
NiMemEventType  a_eventType,
bool  a_provideAccurateSizeOnDeallocate = false,
const char *  a_sourceFile = nullptr,
std::int32_t  a_sourceLine = -1,
const char *  a_function = nullptr 
)

◆ Deallocate()

void RE::NiMemManager::Deallocate ( void *  a_mem,
NiMemEventType  a_eventType,
std::size_t  a_sizeinBytes = static_cast< std::size_t >(-1) 
)

◆ GetSingleton()

static NiMemManager * RE::NiMemManager::GetSingleton ( )
static

◆ Reallocate()

void * RE::NiMemManager::Reallocate ( void *  a_mem,
std::size_t  a_sizeInBytes,
std::size_t  a_alignment,
NiMemEventType  a_eventType,
bool  a_provideAccurateSizeOnDeallocate = false,
std::size_t  a_sizeCurrent = static_cast< std::size_t >(-1),
const char *  a_sourceFile = nullptr,
std::int32_t  a_sourceLine = -1,
const char *  a_function = nullptr 
)

◆ TrackAllocate()

bool RE::NiMemManager::TrackAllocate ( const void *const  a_mem,
std::size_t  a_sizeInBytes,
NiMemEventType  a_eventType,
const char *  a_sourceFile = nullptr,
std::int32_t  a_sourceLine = -1,
const char *  a_function = nullptr 
)

◆ TrackDeallocate()

bool RE::NiMemManager::TrackDeallocate ( const void *const  a_mem,
NiMemEventType  a_eventType 
)

Member Data Documentation

◆ allocator

NiAllocator* RE::NiMemManager::allocator

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