Unigine::Memory Class
Header: | #include <UnigineMemory.h> |
Memory Class
Members
int isInitialized ( ) #
Returns the status of the memory manager.Return value
1 if the memory manager is initialized; otherwise, 0.static void allocate ( size_t size ) #
Allocates the dynamic memory.Arguments
- size_t size - Size of the allocated memory block.
static int deallocate ( void * ptr ) #
Deallocates the dynamic memory.Arguments
- void * ptr - Pointer to the allocated memory block.
static void deallocate ( void * ptr, size_t size ) #
Deallocates the dynamic memory.Arguments
- void * ptr - Pointer to the allocated memory block.
- size_t size - Size of the allocated memory block.
size_t getMemoryUsage ( ) #
Shows the overall amount of used memory in bytes.Return value
Used memory in bytes.static void logInfo ( ) #
bool isStatisticsEnabled ( ) const#
size_t getStaticPoolUsage ( ) const#
size_t getDynamicPoolUsage ( ) const#
size_t getInstancePoolUsage ( ) const#
int getLiveAllocations ( ) const#
int getMaxAllocations ( ) const#
int getFrameAllocations ( ) const#
Last update:
2024-06-07
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)