Skip to content
LeviMC
English
AutoLightDark
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
9namespace OreUI {
10
11class Allocator : public ::cohtml::IAllocator {
12public:
13 // virtual functions
14 // NOLINTBEGIN
15 virtual ~Allocator() /*override*/ = default;
16
17 virtual void* Allocate(uint size, ::cohtml::MemTags::MemTagsType tag) /*override*/;
18
19 virtual void* Reallocate(void* oldPtr, uint size, ::cohtml::MemTags::MemTagsType tag) /*override*/;
20
21 virtual void Deallocate(void* ptr, ::cohtml::MemTags::MemTagsType) /*override*/;
22
23 virtual void* AlignedAllocate(uint size, uint alignment, ::cohtml::MemTags::MemTagsType tag) /*override*/;
24
25 virtual void AlignedDeallocate(void* ptr, ::cohtml::MemTags::MemTagsType) /*override*/;
26
27 virtual void* VirtualAllocate(void*, uint, int, int, ::cohtml::MemTags::MemTagsType) /*override*/;
28
29 virtual bool VirtualFree(void*, uint, int, ::cohtml::MemTags::MemTagsType) /*override*/;
30 // NOLINTEND
31
32public:
33 // virtual function thunks
34 // NOLINTBEGIN
35 MCNAPI void* $Allocate(uint size, ::cohtml::MemTags::MemTagsType tag);
36
37 MCNAPI void* $Reallocate(void* oldPtr, uint size, ::cohtml::MemTags::MemTagsType tag);
38
39 MCNAPI void $Deallocate(void* ptr, ::cohtml::MemTags::MemTagsType);
40
41 MCNAPI void* $AlignedAllocate(uint size, uint alignment, ::cohtml::MemTags::MemTagsType tag);
42
43 MCNAPI void $AlignedDeallocate(void* ptr, ::cohtml::MemTags::MemTagsType);
44
45 MCNAPI void* $VirtualAllocate(void*, uint, int, int, ::cohtml::MemTags::MemTagsType);
46
47 MCNAPI bool $VirtualFree(void*, uint, int, ::cohtml::MemTags::MemTagsType);
48 // NOLINTEND
49
50public:
51 // vftables
52 // NOLINTBEGIN
53 MCNAPI static void** $vftable();
54 // NOLINTEND
55};
56
57} // namespace OreUI
Definition Allocator.h:7
MCAPI void * $VirtualAllocate(void *, uint, int, int, ::cohtml::MemTags::MemTagsType)
MCAPI void * $Allocate(uint size, ::cohtml::MemTags::MemTagsType tag)
MCAPI bool $VirtualFree(void *, uint, int, ::cohtml::MemTags::MemTagsType)
MCAPI void $AlignedDeallocate(void *ptr, ::cohtml::MemTags::MemTagsType)
MCAPI void $Deallocate(void *ptr, ::cohtml::MemTags::MemTagsType)
MCAPI void * $AlignedAllocate(uint size, uint alignment, ::cohtml::MemTags::MemTagsType tag)
MCAPI void * $Reallocate(void *oldPtr, uint size, ::cohtml::MemTags::MemTagsType tag)
static MCAPI void ** $vftable()