Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
Inheritance Hierarchy
- FMemStackBase
- FMemStack
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/MemStack.h |
| Include | #include "Misc/MemStack.h" |
Syntax
class FMemStackBase
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bShouldEnforceAllocMarks |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMemStackBase
(
const FMemStackBase& |
|||
FMemStackBase
(
FMemStackBase&& Other |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void * | Alloc
(
size_t AllocSize, |
||
| bool | ContainsPointer
(
const void* Pointer |
Returns true if the pointer was allocated using this allocator. | |
| void | Flush () |
||
| int32 | GetByteCount () |
||
| int32 | GetNumMarks () |
||
| bool | IsEmpty () |
Return true if this stack is empty. | |
| uint8 * | PushBytes
(
size_t AllocSize, |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FMemStackBase & | operator=
(
FMemStackBase&& Other |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FTaggedMemory | Types. |