LeviLamina
Loading...
Searching...
No Matches
IAllocator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace renoir {
6
7class IAllocator {
8public:
9 // virtual functions
10 // NOLINTBEGIN
11 virtual void* Allocate(uint) = 0;
12
13 virtual void* Reallocate(void*, uint) = 0;
14
15 virtual void Deallocate(void*) = 0;
16
17 virtual void* AlignedAllocate(uint, uint) = 0;
18
19 virtual void AlignedDeallocate(void*) = 0;
20
21 virtual ~IAllocator() = default;
22 // NOLINTEND
23
24public:
25 // virtual function thunks
26 // NOLINTBEGIN
27
28 // NOLINTEND
29};
30
31} // namespace renoir
Definition IAllocator.h:7