CommonLibSSE (Parapets fork)
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
13 ~Allocator() override; // 00
14
15 void* BlockAlloc(std::int32_t a_numBytes) override; // 01
16 void BlockFree(void* a_ptr, std::int32_t a_numBytes) override; // 02
17 void* BufAlloc(std::int32_t& a_reqNumBytesInOut) override; // 03
18 void BufFree(void* a_ptr, std::int32_t a_numBytes) override; // 04
19 void GetMemoryStatistics(MemoryStatistics& a_usage) override; // 08
20 std::int32_t GetAllocatedSize(const void* a_obj, std::int32_t a_numBytes) override; // 09
21 };
22 static_assert(sizeof(Allocator) == 0x8);
23
24 [[nodiscard]] static Allocator* GetSingleton()
25 {
27 return singleton.get();
28 }
29 };
30 static_assert(sizeof(hkContainerHeapAllocator) == 0x1);
31}
Definition: hkMemoryAllocator.h:8
Definition: Relocation.h:858
constexpr REL::ID Singleton(static_cast< std::uint64_t >(383828))
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_hkContainerHeapAllocator__Allocator
Definition: Offsets_RTTI.h:7135
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
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:24
Definition: hkMemoryAllocator.h:21