Navigation
API > API/Runtime > API/Runtime/Core
Memory output device. Logs only into pre-allocated memory buffer.
| Name | FOutputDeviceMemory |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/OutputDeviceMemory.h |
| Include Path | #include "Misc/OutputDeviceMemory.h" |
Syntax
class FOutputDeviceMemory : public FOutputDevice
Inheritance Hierarchy
- FOutputDevice → FOutputDeviceMemory
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FOutputDeviceMemory
(
int32 InPreserveSize, |
Constructor, initializing member variables. | Misc/OutputDeviceMemory.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FOutputDeviceMemory() |
Misc/OutputDeviceMemory.h |
Classes
| Name | Remarks |
|---|---|
| FOutputDeviceMemoryProxyArchive |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ArchiveProxy | FOutputDeviceMemory::FOutputDeviceMemoryProxyArchive | Misc/OutputDeviceMemory.h | ||
| Buffer | TArray< ANSICHAR > | Ring buffer | Misc/OutputDeviceMemory.h | |
| BufferLength | int32 | Used data size | Misc/OutputDeviceMemory.h | |
| BufferPosCritical | FCriticalSection | Sync object for the buffer pos | Misc/OutputDeviceMemory.h | |
| BufferStartPos | int32 | Position where data starts in the buffer | Misc/OutputDeviceMemory.h | |
| PreserveSize | int32 | Amount of data not to overwrite | Misc/OutputDeviceMemory.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Serialize
(
const TCHAR* Data, |
Misc/OutputDeviceMemory.h | ||
virtual void Serialize
(
const TCHAR* Data, |
Misc/OutputDeviceMemory.h |
Overridden from FOutputDevice
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanBeUsedOnAnyThread() |
Misc/OutputDeviceMemory.h | ||
virtual bool CanBeUsedOnPanicThread() |
The return value is cached by AddOutputDevice because calling this during a panic may fail. | Misc/OutputDeviceMemory.h | |
virtual void Dump
(
FArchive& Ar |
Dumps the contents of the buffer to an archive | Misc/OutputDeviceMemory.h | |
virtual void Flush() |
Flush the write cache so the file isn't truncated in case we crash right after calling this function. | Misc/OutputDeviceMemory.h | |
virtual bool IsMemoryOnly() |
Misc/OutputDeviceMemory.h | ||
virtual void TearDown () |
Closes output device and cleans up. | Misc/OutputDeviceMemory.h |