11 #define CID_ADTF_MEMORY_ALLOCATOR "memory_allocator.service.adtf.cid"
40 virtual tResult Alloc(
size_t nBytes,
void*& pMemory,
size_t& nCapacity) = 0;
Copyright © Audi Electronics Venture GmbH.
A common result class usable as return value throughout.
Interface for allocation and releasing of memory.
ADTF_IID(IMemoryAllocator, "memory_allocator.ant.services.adtf.iid")
Marks the IMemoryAllocator to be castable with the adtf::ucom::ant::ucom_cast<>
virtual tResult Alloc(size_t nBytes, void *&pMemory, size_t &nCapacity)=0
Allocates a contigeous block of memory which is at least of size nBytes.
virtual tResult Free(void *pMemory)=0
Releases a block of memory that has been allocated with Alloc.
Base class for every interface type within the uCOM.
Namespace for entire ADTF SDK.