FMemStackBase

Simple linear-allocation memory stack.

Windows
MacOS
Linux

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.

Constructors

Name Description

Public function

FMemStackBase

(
    int32 InMinMarksToAlloc
)

Destructors

Name Description

Public function

~FMemStackBase()

Functions

Name Description

Public function

void *

 

Alloc

(
    int32 AllocSize,
    int32 Alignment
)

Public function Const

bool

 

ContainsPointer

(
    const void* Pointer
)

Returns true if the pointer was allocated using this allocator.

Public function

void

 

Flush()

Public function Const

int32

 

GetByteCount()

Public function

int32

 

GetNumMarks()

Public function Const

bool

 

IsEmpty()

Return true if this stack is empty.

Public function

uint8 *

 

PushBytes

(
    int32 AllocSize,
    int32 Alignment
)

Classes

Name

Description

Public struct

FTaggedMemory

Types.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss