Navigation
API > API/Runtime > API/Runtime/uLangCore
Allocates from a series of arenas Memory blocks can not be individually deallocated Deleting this allocator will free all allocated memory NOT thread safe (on purpose, for efficiency)
| Name | CArenaAllocator |
| Type | class |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Memory/ArenaAllocator.h |
| Include Path | #include "uLang/Common/Memory/ArenaAllocator.h" |
Syntax
class CArenaAllocator : public uLang::CAllocatorInstance
Inheritance Hierarchy
- CAllocatorInstance → CArenaAllocator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
CArenaAllocator
(
uint32_t ArenaSize |
uLang/Common/Memory/ArenaAllocator.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~CArenaAllocator() |
uLang/Common/Memory/ArenaAllocator.h |
Structs
| Name | Remarks |
|---|---|
| SArenaHeader | Header of an arena, the allocated memory follows. |
Enums
Protected
| Name | Remarks |
|---|---|
| CArenaAllocator |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void * Allocate
(
uint32_t NumBytes |
CArenaAllocator Inline Methods. | uLang/Common/Memory/ArenaAllocator.h | |
void DeallocateAll() |
uLang/Common/Memory/ArenaAllocator.h | ||
void Merge
(
CArenaAllocator&& Other |
uLang/Common/Memory/ArenaAllocator.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AllocateNewArena() |
Get more memory. | uLang/Common/Memory/ArenaAllocator.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void * Allocate
(
const CAllocatorInstance* This, |
uLang/Common/Memory/ArenaAllocator.h | ||
static void Deallocate
(
const CAllocatorInstance* This, |
uLang/Common/Memory/ArenaAllocator.h | ||
static void * Reallocate
(
const CAllocatorInstance* This, |
uLang/Common/Memory/ArenaAllocator.h |