CommonLibSSE (powerof3)
GAllocatorBaseGH.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/G/GMemory.h"
4 #include "RE/G/GStats.h"
5 
6 namespace RE
7 {
8  template <std::uint32_t SID = GStatGroup::kGStat_Default_Mem>
10  {
11  public:
12  enum
13  {
14  kStatID = SID
15  };
16 
17  static void* Alloc([[maybe_unused]] const void* a_heapAddr, UPInt a_size)
18  {
19  return GMemory::Alloc(a_size);
20  }
21 
22  static void* Realloc(void* a_ptr, UPInt a_newSize)
23  {
24  return GMemory::Realloc(a_ptr, a_newSize);
25  }
26 
27  static void Free(void* a_ptr)
28  {
29  GMemory::Free(a_ptr);
30  }
31  };
32  static_assert(sizeof(GAllocatorBaseGH<>) == 0x1);
33 }
Definition: GAllocatorBaseGH.h:10
@ kStatID
Definition: GAllocatorBaseGH.h:14
static void * Alloc([[maybe_unused]] const void *a_heapAddr, UPInt a_size)
Definition: GAllocatorBaseGH.h:17
static void * Realloc(void *a_ptr, UPInt a_newSize)
Definition: GAllocatorBaseGH.h:22
static void Free(void *a_ptr)
Definition: GAllocatorBaseGH.h:27
static void * Realloc(void *a_ptr, UPInt a_newCount)
static void Free(void *a_ptr)
static void * Alloc(UPInt a_count)
Definition: AbsorbEffect.h:6
std::size_t UPInt
Definition: SFTypes.h:5