LeviLamina
Loading...
Searching...
No Matches
MemoryPage.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace Bedrock::JSONObject {
6
7class MemoryPage {
8public:
9 // member variables
10 // NOLINTBEGIN
17 // NOLINTEND
18
19public:
20 // prevent constructor by default
21 MemoryPage& operator=(MemoryPage const&);
22 MemoryPage(MemoryPage const&);
23 MemoryPage();
24
25public:
26 // member functions
27 // NOLINTBEGIN
28 MCAPI void* _allocate(
29 uint64 (Bedrock::JSONObject::MemoryPage::*allocateFn)(uint64, uint64),
30 void* (Bedrock::JSONObject::MemoryPage::*forwardFn)(uint64, uint64),
31 uint64 bytes,
32 uint64 align
33 );
34
35 MCAPI uint64 _tryAllocateBack(uint64 bytes, uint64 align);
36
37 MCAPI uint64 _tryAllocateFront(uint64 bytes, uint64 align);
38
39 MCAPI void* allocateBack(uint64 bytes, uint64 align);
40
41 MCAPI void* allocateFront(uint64 bytes, uint64 align);
42 // NOLINTEND
43};
44
45} // namespace Bedrock::JSONObject
Definition MemoryPage.h:7
Definition Alias.h:14