ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
memory_allocator_intf.h
Go to the documentation of this file.
1
7#pragma once
9
11#define CID_ADTF_MEMORY_ALLOCATOR "memory_allocator.service.adtf.cid"
12
13namespace adtf
14{
15namespace services
16{
17namespace ant
18{
19
24{
25 public:
30 ADTF_IID(IMemoryAllocator, "memory_allocator.ant.services.adtf.iid");
31
32 public:
40 virtual tResult Alloc(size_t nBytes, void*& pMemory, size_t& nCapacity) = 0;
41
47 virtual tResult Free(void* pMemory) = 0;
48};
49
50}
51
53
54}
55
56}
Copyright © Audi Electronics Venture GmbH.
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Interface for allocation and releasing of memory.
ADTF_IID(IMemoryAllocator, "memory_allocator.ant.services.adtf.iid")
Marks the IMemoryAllocator to be castable with the 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.
ant::IObject IObject
Alias always bringing the latest version of ant::IObject into scope.
Namespace for entire ADTF SDK.