|
ADTF
|
#include <memory_allocator_intf.h>
Inherits adtf::ucom::ant::IObject.
Public Member Functions | |
| ADTF_IID (IMemoryAllocator, "memory_allocator.ant.services.adtf.iid") | |
| virtual tResult | Alloc (size_t nBytes, void *&pMemory, size_t &nCapacity)=0 |
| virtual tResult | Free (void *pMemory)=0 |
Public Member Functions inherited from adtf::ucom::ant::IObject | |
| ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Additional Inherited Members | |
Protected Member Functions inherited from adtf::ucom::ant::IObject | |
| ~IObject ()=default | |
| Protected destructor --> Only the final implementation can be destroyed! | |
Interface for allocation and releasing of memory.
| adtf::services::ant::IMemoryAllocator::ADTF_IID | ( | IMemoryAllocator | , |
| "memory_allocator.ant.services.adtf.iid" | ) |
Marks the IMemoryAllocator to be castable with the adtf::ucom::ant::ucom_cast<>
|
pure virtual |
Allocates a contigeous block of memory which is at least of size nBytes.
| [in] | nBytes | The amount of bytes that should be allocated. |
| [out] | pMemory | This will point to the allocated memory. |
| [out] | nCapacity | The actual size of the block. |
|
pure virtual |
Releases a block of memory that has been allocated with Alloc.
| [in] | pMemory | The pointer to the memory. |