CommonLibSSE (Parapets fork)
hkContainerAllocators.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace RE
6 {
8  {
9  struct Allocator : public hkMemoryAllocator
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  };
26  static_assert(sizeof(hkContainerHeapAllocator) == 0x1);
27 }
Definition: hkMemoryAllocator.h:8
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_hkContainerHeapAllocator__Allocator
Definition: Offsets_RTTI.h:7135
Definition: hkContainerAllocators.h:10
void * BlockAlloc(std::int32_t a_numBytes) 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
void * BufAlloc(std::int32_t &a_reqNumBytesInOut) override
static constexpr auto RTTI
Definition: hkContainerAllocators.h:11
void BlockFree(void *a_ptr, std::int32_t a_numBytes) override
Definition: hkContainerAllocators.h:8
static Allocator * GetSingleton()
Definition: hkMemoryAllocator.h:21