AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
MemorySystemInterface.h
Go to the documentation of this file.
1
6#pragma once
7
9
10#include <cstdlib>
11
12namespace Aws
13{
14 namespace Utils
15 {
16 namespace Memory
17 {
23 {
24 public:
25 virtual ~MemorySystemInterface() = default;
26
30 virtual void Begin() = 0;
34 virtual void End() = 0;
35
40 virtual void* AllocateMemory(std::size_t blockSize, std::size_t alignment, const char *allocationTag = nullptr) = 0;
41
45 virtual void FreeMemory(void* memoryPtr) = 0;
46 };
47
48 } // namespace Memory
49 } // namespace Utils
50} // namespace Aws
#define AWS_CORE_API
Definition: Core_EXPORTS.h:26
virtual void FreeMemory(void *memoryPtr)=0
virtual void * AllocateMemory(std::size_t blockSize, std::size_t alignment, const char *allocationTag=nullptr)=0