FOutputDeviceMemory

Memory output device. Logs only into pre-allocated memory buffer.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FOutputDevice

FOutputDeviceMemory

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/OutputDeviceMemory.h

Include

#include "Misc/OutputDeviceMemory.h"

Syntax

class FOutputDeviceMemory : public FOutputDevice

Remarks

Memory output device. Logs only into pre-allocated memory buffer.

Constructors

Name Description

Public function

FOutputDeviceMemory

(
    int32 InPreserveSize,
    int32 InBufferSize,
    bool bInSuppressEventTag
)

Constructor, initializing member variables.

Functions

Name Description

Public function Virtual

void

 

Serialize

(
    const TCHAR* Data,
    ELogVerbosity::Type Verbosity,
    const FName& Category
)

Public function Virtual

void

 

Serialize

(
    const TCHAR* Data,
    ELogVerbosity::Type Verbosity,
    const FName& Category,
    const double Time
)

Overridden from FOutputDevice

Name Description

Public function Virtual Const

bool

 

CanBeUsedOnAnyThread()

Public function Virtual

void

 

Dump

(
    FArchive& Ar
)

Dumps the contents of the buffer to an archive

Public function Virtual

void

 

Flush()

Flush the write cache so the file isn't truncated in case we crash right after calling this function.

Public function Virtual Const

bool

 

IsMemoryOnly()

Public function Virtual

void

 

TearDown()

Closes output device and cleans up.