CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
NiTDefaultAllocator.h
Go to the documentation of this file.
1#pragma once
2
4
5#define NiTDefaultAllocator DFALL
6
7namespace RE
8{
9 template <class T>
11 {
12 public:
13 void* Allocate()
14 {
15 return NiMalloc(sizeof(T));
16 }
17
18 void Deallocate(void* a_ptr)
19 {
20 return NiFree(a_ptr);
21 }
22 };
23}
Definition: NiTDefaultAllocator.h:11
void Deallocate(void *a_ptr)
Definition: NiTDefaultAllocator.h:18
void * Allocate()
Definition: NiTDefaultAllocator.h:13
Definition: AbsorbEffect.h:6
void NiFree(void *a_mem)
void * NiMalloc(std::size_t a_sizeInBytes)