Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
VirtualAllocator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/gameface/cohtml/IVirtualAllocator.h"
7
8namespace OreUI {
9
10class VirtualAllocator : public ::cohtml::IVirtualAllocator {
11public:
12 // virtual functions
13 // NOLINTBEGIN
14 virtual ~VirtualAllocator() /*override*/ = default;
15
16 virtual uint64 GetAllocationPageSize() const /*override*/;
17
18 virtual uint64 GetCommitPageSize() const /*override*/;
19
20 virtual void* Allocate(void* address, uint64 size, uint64 alignment, int protection, int flags) /*override*/;
21
22 virtual bool Free(void* address, uint64 size, int flags) /*override*/;
23
24 virtual bool PartialFree(void* address, uint64 oldSize, uint64 newSize, int) /*override*/;
25 // NOLINTEND
26
27public:
28 // virtual function thunks
29 // NOLINTBEGIN
30 MCNAPI uint64 $GetAllocationPageSize() const;
31
32 MCNAPI uint64 $GetCommitPageSize() const;
33
34 MCNAPI void* $Allocate(void* address, uint64 size, uint64 alignment, int protection, int flags);
35
36 MCNAPI bool $Free(void* address, uint64 size, int flags);
37
38 MCNAPI bool $PartialFree(void* address, uint64 oldSize, uint64 newSize, int);
39 // NOLINTEND
40
41public:
42 // vftables
43 // NOLINTBEGIN
44 MCNAPI static void** $vftable();
45 // NOLINTEND
46};
47
48} // namespace OreUI
Definition VirtualAllocator.h:7
MCAPI bool $PartialFree(void *address, uint64 oldSize, uint64 newSize, int)
MCAPI void * $Allocate(void *address, uint64 size, uint64 alignment, int protection, int flags)
static MCAPI void ** $vftable()
MCAPI uint64 $GetCommitPageSize() const
MCAPI uint64 $GetAllocationPageSize() const
MCAPI bool $Free(void *address, uint64 size, int flags)