3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/external/gameface/cohtml/IAllocator.h"
7#include "mc/external/gameface/cohtml/MemTagsType.h"
11class Allocator :
public ::cohtml::IAllocator {
15 virtual ~Allocator() =
default;
17 virtual void* Allocate(uint size, ::cohtml::MemTags::MemTagsType tag) ;
19 virtual void* Reallocate(
void* oldPtr, uint size, ::cohtml::MemTags::MemTagsType tag) ;
21 virtual void Deallocate(
void* ptr, ::cohtml::MemTags::MemTagsType) ;
23 virtual void* AlignedAllocate(uint size, uint alignment, ::cohtml::MemTags::MemTagsType tag) ;
25 virtual void AlignedDeallocate(
void* ptr, ::cohtml::MemTags::MemTagsType) ;
27 virtual void* VirtualAllocate(
void*, uint,
int,
int, ::cohtml::MemTags::MemTagsType) ;
29 virtual bool VirtualFree(
void*, uint,
int, ::cohtml::MemTags::MemTagsType) ;
35 MCAPI
void* $Allocate(uint size, ::cohtml::MemTags::MemTagsType tag);
37 MCAPI
void* $Reallocate(
void* oldPtr, uint size, ::cohtml::MemTags::MemTagsType tag);
39 MCAPI
void $Deallocate(
void* ptr, ::cohtml::MemTags::MemTagsType);
41 MCAPI
void* $AlignedAllocate(uint size, uint alignment, ::cohtml::MemTags::MemTagsType tag);
43 MCAPI
void $AlignedDeallocate(
void* ptr, ::cohtml::MemTags::MemTagsType);
45 MCAPI
void* $VirtualAllocate(
void*, uint,
int,
int, ::cohtml::MemTags::MemTagsType);
47 MCAPI
bool $VirtualFree(
void*, uint,
int, ::cohtml::MemTags::MemTagsType);