Navigation
API > API/Runtime > API/Runtime/Core
Simple linear-allocation memory stack. Items are allocated via PushBytes() or the specialized operator new()s. Items are freed en masse by using FMemMark to Pop() them.
| Name | FMemStackBase |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/MemStack.h |
| Include Path | #include "Misc/MemStack.h" |
Syntax
class FMemStackBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMemStackBase
(
EPageSize PageSize |
Misc/MemStack.h | ||
FMemStackBase
(
const FMemStackBase& |
Misc/MemStack.h | ||
FMemStackBase
(
FMemStackBase&& Other |
Misc/MemStack.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FMemStackBase() |
Misc/MemStack.h |
Structs
| Name | Remarks |
|---|---|
| FTaggedMemory | Types. |
Enums
Public
| Name | Remarks |
|---|---|
| EPageSize |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| End | uint8 * | Misc/MemStack.h | ||
| NumMarks | int32 | The number of marks on this stack. | Misc/MemStack.h | |
| PageSize | EPageSize | The page size to use when allocating. | Misc/MemStack.h | |
| Top | uint8 * | Variables. | Misc/MemStack.h | |
| TopChunk | FTaggedMemory * | Misc/MemStack.h | ||
| TopMark | FMemMark * | The top mark on the stack. | Misc/MemStack.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void * Alloc
(
size_t AllocSize, |
Misc/MemStack.h | ||
bool CanFitInPage
(
size_t AllocSize, |
Misc/MemStack.h | ||
bool ContainsPointer
(
const void* Pointer |
Returns true if the pointer was allocated using this allocator. | Misc/MemStack.h | |
void Flush() |
Misc/MemStack.h | ||
int32 GetByteCount() |
Misc/MemStack.h | ||
int32 GetNumMarks() |
Misc/MemStack.h | ||
uint8 * GetTop() |
Misc/MemStack.h | ||
bool IsEmpty() |
Return true if this stack is empty. | Misc/MemStack.h | |
uint8 * PushBytes
(
size_t AllocSize, |
Misc/MemStack.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMemStackBase & operator=
(
FMemStackBase&& Other |
Misc/MemStack.h |