| FArenaPointer
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Memory/MemoryArena.h |
Include |
#include "Memory/MemoryArena.h" |
class FArenaPointer
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.
Name | Description | |
---|---|---|
|
FArenaPointer() |
|
|
FArenaPointer |
Name | Description | ||
---|---|---|---|
|
FMemoryArena... |
Arena() |
|
|
const uint16 |
ArenaIndex() |
|
|
Free() |
||
|
void * |
Pointer() |
|
|
const void &... |
Pointer() |
|
|
SetPointerAndArena |
Name | Description | ||
---|---|---|---|
|
operator bool() |
Name |
Description |
---|---|
NoTag |