![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MemoryArena.h>
Inheritance diagram for FArenaPointer:Public Types | |
| enum | { NoTag = 0 } |
Public Member Functions | |
| FArenaPointer ()=default | |
| UE_FORCEINLINE_HINT const uint16 | GetArenaIndex () const |
| UE_FORCEINLINE_HINT void * | GetPointer () |
| UE_FORCEINLINE_HINT const void * | GetPointer () const |
| UE_FORCEINLINE_HINT void | SetPointerAndArena (void *InPtr, uint16 InArenaTag) |
| FArenaPointer (void *Ptr, uint16 ArenaIndex) | |
| operator bool () const | |
| void | Free () const |
| CORE_API FMemoryArena & | Arena () const |
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.
|
default |
| FMemoryArena & FArenaPointer::Arena | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |