CommonLibSSE (powerof3)
IMemoryStore.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace RE
6 {
8  {
9  public:
10  inline static constexpr auto RTTI = RTTI_IMemoryStore;
11 
12  ~IMemoryStore() override = default; // 00
13 
14  // add
15  virtual void* AllocateAlignImpl(std::size_t a_size, std::uint32_t a_alignment) = 0; // 04
16  virtual void DeallocateAlignImpl(void*& a_block) = 0; // 05
17  virtual void* TryAllocateImpl([[maybe_unused]] std::size_t a_size, [[maybe_unused]] std::uint32_t a_alignment) { return nullptr; } // 06
18 
19  void* AllocateAlign(std::size_t a_size, std::uint32_t a_alignment);
20  void DeallocateAlign(void*& a_freeBlock);
21  };
22  static_assert(sizeof(IMemoryStore) == 0x8);
23 }
Definition: IMemoryStoreBase.h:20
Definition: IMemoryStore.h:8
void DeallocateAlign(void *&a_freeBlock)
virtual void * AllocateAlignImpl(std::size_t a_size, std::uint32_t a_alignment)=0
~IMemoryStore() override=default
virtual void DeallocateAlignImpl(void *&a_block)=0
virtual void * TryAllocateImpl([[maybe_unused]] std::size_t a_size, [[maybe_unused]] std::uint32_t a_alignment)
Definition: IMemoryStore.h:17
void * AllocateAlign(std::size_t a_size, std::uint32_t a_alignment)
static constexpr auto RTTI
Definition: IMemoryStore.h:10
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_IMemoryStore
Definition: Offsets_RTTI.h:4953