Navigation
Unreal Engine C++ API Reference > Runtime > Core > Memory
Inheritance Hierarchy
- FArenaPointer
- TArenaPointer
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Memory/MemoryArena.h |
Include | #include "Memory/MemoryArena.h" |
Syntax
class FArenaPointer
Remarks
Tagged Arena Pointer
Stores an arena ID alongside a pointer. On 64-bit architectures the arena ID can be encoded in the otherwise unused MSB part of the pointer for zero memory overhead vs a regular pointer. For 32-bit architectures the arena ID is stored in a separate member.
A null pointer can still have an arena ID, which is useful for cases where you have a container that starts out empty but still want to track which arena should be used for subsequent allocations.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
FArenaPointer
(
void* InPtr, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FMemoryArena & | Arena () |
|
![]() ![]() |
void | Free () |
|
![]() ![]() |
const uint16 | ||
![]() |
void * | GetPointer () |
|
![]() ![]() |
const void * | GetPointer () |
|
![]() |
void | SetPointerAndArena
(
void* InPtr, |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Constants
Name | Description |
---|---|
NoTag |