LeviLamina
Loading...
Searching...
No Matches
Allocator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/client/gui/oreui/interface/IPlatformAllocator.h"
5
6// auto generated inclusion list
7#include "mc/external/gameface/cohtml/IAllocator.h"
8#include "mc/external/gameface/cohtml/MemTagsType.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace OreUI { class IPlatformAllocator; }
13// clang-format on
14
15namespace OreUI {
16
17class Allocator : public ::cohtml::IAllocator {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::IPlatformAllocator>> mPlatformAllocator;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 Allocator();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ~Allocator() /*override*/ = default;
32
33 virtual void* Allocate(uint size, ::cohtml::MemTags::MemTagsType tag) /*override*/;
34
35 virtual void* Reallocate(void* oldPtr, uint size, ::cohtml::MemTags::MemTagsType tag) /*override*/;
36
37 virtual void Deallocate(void* ptr, ::cohtml::MemTags::MemTagsType) /*override*/;
38
39 virtual void* AlignedAllocate(uint size, uint alignment, ::cohtml::MemTags::MemTagsType tag) /*override*/;
40
41 virtual void AlignedDeallocate(void* ptr, ::cohtml::MemTags::MemTagsType) /*override*/;
42
43 virtual void*
44 VirtualAllocate(void* hint, uint size, int protection, int flags, ::cohtml::MemTags::MemTagsType) /*override*/;
45
46 virtual bool VirtualFree(void* ptr, uint size, int flags, ::cohtml::MemTags::MemTagsType) /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI explicit Allocator(::std::unique_ptr<::OreUI::IPlatformAllocator> platformAllocator);
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor(::std::unique_ptr<::OreUI::IPlatformAllocator> platformAllocator);
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCAPI void* $Allocate(uint size, ::cohtml::MemTags::MemTagsType tag);
65
66 MCAPI void* $Reallocate(void* oldPtr, uint size, ::cohtml::MemTags::MemTagsType tag);
67
68 MCFOLD void $Deallocate(void* ptr, ::cohtml::MemTags::MemTagsType);
69
70 MCAPI void* $AlignedAllocate(uint size, uint alignment, ::cohtml::MemTags::MemTagsType tag);
71
72 MCFOLD void $AlignedDeallocate(void* ptr, ::cohtml::MemTags::MemTagsType);
73
74 MCAPI void* $VirtualAllocate(void* hint, uint size, int protection, int flags, ::cohtml::MemTags::MemTagsType);
75
76 MCAPI bool $VirtualFree(void* ptr, uint size, int flags, ::cohtml::MemTags::MemTagsType);
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
85
86} // namespace OreUI
Definition Allocator.h:7
static MCAPI void ** $vftable()
Definition IPlatformAllocator.h:7