ADTF
Loading...
Searching...
No Matches
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}
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition memory_allocator_intf.h:24
virtual tResult Alloc(size_t nBytes, void *&pMemory, size_t &nCapacity)=0
virtual tResult Free(void *pMemory)=0
ADTF_IID(IMemoryAllocator, "memory_allocator.ant.services.adtf.iid")
ant::IObject IObject
Alias always bringing the latest version of ant::IObject into scope.
Definition object_intf.h:109
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14