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