CommonLibSSE NG
Loading...
Searching...
No Matches
BSNiAllocator.h
Go to the documentation of this file.
1#pragma once
2
3#include "RE/N/NiAllocator.h"
4
5namespace RE
6{
8 {
9 public:
10 inline static constexpr auto RTTI = RTTI_BSNiAllocator;
11
12 ~BSNiAllocator() override; // 00
13
14 // override (
15 void* Allocate(std::size_t& a_sizeInBytes, std::size_t& a_alignment, NiMemEventType a_eventType, bool a_provideAccurateSizeOnDeallocate, const char* a_file, std::int32_t a_line, const char* a_function) override; // 01
16 void Deallocate(void* a_memory, NiMemEventType a_eventType, std::size_t a_sizeInBytes) override; // 02
17 void* Reallocate(void* a_memory, size_t& a_sizeInBytes, std::size_t& a_alignment, NiMemEventType a_eventType, bool a_provideAccurateSizeOnDeallocate, std::size_t a_sizeCurrent, const char* a_file, std::int32_t a_line, const char* a_function) override; // 03
18 bool TrackAllocate(const void* const a_memory, std::size_t a_sizeInBytes, NiMemEventType a_eventType, const char* a_file, std::int32_t a_line, const char* a_function) override; // 04
19 bool TrackDeallocate(const void* const a_memory, NiMemEventType a_eventType) override; // 05
20 void Unk_06(void) override; // 06 - implements a realloc
21 void Initialize() override; // 07 - { return; }
22 void Shutdown() override; // 08 - { return; }
23 bool VerifyAddress(const void* a_memory) override; // 09 - { return true; }
24 };
25 static_assert(sizeof(BSNiAllocator) == 0x8);
26}
Definition BSNiAllocator.h:8
~BSNiAllocator() override
static constexpr auto RTTI
Definition BSNiAllocator.h:10
void Unk_06(void) override
void Deallocate(void *a_memory, NiMemEventType a_eventType, std::size_t a_sizeInBytes) override
bool VerifyAddress(const void *a_memory) override
void Shutdown() override
bool TrackDeallocate(const void *const a_memory, NiMemEventType a_eventType) override
void Initialize() override
bool TrackAllocate(const void *const a_memory, std::size_t a_sizeInBytes, NiMemEventType a_eventType, const char *a_file, std::int32_t a_line, const char *a_function) override
void * Allocate(std::size_t &a_sizeInBytes, std::size_t &a_alignment, NiMemEventType a_eventType, bool a_provideAccurateSizeOnDeallocate, const char *a_file, std::int32_t a_line, const char *a_function) override
void * Reallocate(void *a_memory, size_t &a_sizeInBytes, std::size_t &a_alignment, NiMemEventType a_eventType, bool a_provideAccurateSizeOnDeallocate, std::size_t a_sizeCurrent, const char *a_file, std::int32_t a_line, const char *a_function) override
Definition NiAllocator.h:23
Definition AbsorbEffect.h:6
NiMemEventType
Definition NiAllocator.h:6
constexpr REL::VariantID RTTI_BSNiAllocator(690323, 398178, 0x1f5ffd0)