CommonLibSSE NG
Loading...
Searching...
No Matches
hkContainerAllocators.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace RE
6{
8 {
10 {
11 inline static constexpr auto RTTI = RTTI_hkContainerHeapAllocator__Allocator;
12 inline static constexpr auto VTABLE = VTABLE_hkContainerHeapAllocator__Allocator;
13
14 ~Allocator() override; // 00
15
16 void* BlockAlloc(std::int32_t a_numBytes) override; // 01
17 void BlockFree(void* a_ptr, std::int32_t a_numBytes) override; // 02
18 void* BufAlloc(std::int32_t& a_reqNumBytesInOut) override; // 03
19 void BufFree(void* a_ptr, std::int32_t a_numBytes) override; // 04
20 void GetMemoryStatistics(MemoryStatistics& a_usage) override; // 08
21 std::int32_t GetAllocatedSize(const void* a_obj, std::int32_t a_numBytes) override; // 09
22 };
23 static_assert(sizeof(Allocator) == 0x8);
24
25 [[nodiscard]] static Allocator* GetSingleton()
26 {
28 return singleton.get();
29 }
30 };
31 static_assert(sizeof(hkContainerHeapAllocator) == 0x1);
32}
#define RELOCATION_ID(a_se, a_ae)
Definition PCH.h:794
Definition hkMemoryAllocator.h:8
Definition Relocation.h:1638
Definition AbsorbEffect.h:6
constexpr REL::VariantID RTTI_hkContainerHeapAllocator__Allocator(689587, 397442, 0x1f56060)
constexpr std::array< REL::VariantID, 1 > VTABLE_hkContainerHeapAllocator__Allocator
Definition Offsets_VTABLE.h:4741
Definition hkContainerAllocators.h:10
void * BufAlloc(std::int32_t &a_reqNumBytesInOut) override
std::int32_t GetAllocatedSize(const void *a_obj, std::int32_t a_numBytes) override
void BufFree(void *a_ptr, std::int32_t a_numBytes) override
void GetMemoryStatistics(MemoryStatistics &a_usage) override
static constexpr auto RTTI
Definition hkContainerAllocators.h:11
static constexpr auto VTABLE
Definition hkContainerAllocators.h:12
void * BlockAlloc(std::int32_t a_numBytes) override
void BlockFree(void *a_ptr, std::int32_t a_numBytes) override
Definition hkContainerAllocators.h:8
static Allocator * GetSingleton()
Definition hkContainerAllocators.h:25
Definition hkMemoryAllocator.h:22