Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::IMemoryAllocator Struct Referenceabstract

Base interface for a raw memory allocator. More...

#include <MemoryAllocator.h>

Inheritance diagram for Diligent::IMemoryAllocator:
Diligent::DefaultRawMemoryAllocator Diligent::FixedBlockMemoryAllocator

Public Member Functions

virtual void * Allocate (size_t Size, const Char *dbgDescription, const char *dbgFileName, const Int32 dbgLineNumber)=0
 Allocates block of memory.
 
virtual void Free (void *Ptr)=0
 Releases memory.
 
virtual void * AllocateAligned (size_t Size, size_t Alignment, const Char *dbgDescription, const char *dbgFileName, const Int32 dbgLineNumber)=0
 Allocates block of memory with specified alignment.
 
virtual void FreeAligned (void *Ptr)=0
 Releases memory allocated with AllocateAligned.
 

Detailed Description

Base interface for a raw memory allocator.