TMemoryWriter

Archive for storing arbitrary data to the specified memory location

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Serialization/MemoryWriter.h

Include

#include "Serialization/MemoryWriter.h"

Syntax

template<int IndexSize>
class TMemoryWriter : public FMemoryArchive

Remarks

Archive for storing arbitrary data to the specified memory location

Variables

Name Description

Protected variable

const FName

 

ArchiveName

Archive name, used to debugging, by default set to NAME_None.

Protected variable

TArray< uint8, ...

 

Bytes

Constructors

Name Description

Public function

TMemoryWriter

(
    TArray< uint8, TSizedDefaultAllocat...,
    bool bIsPersistent,
    bool bSetOffset,
    const FName InArchiveName
)

Overridden from FArchive

Name Description

Public function Virtual

void

 

Serialize

(
    void* Data,
    int64 Num
)

Overridden from FArchiveState

Name Description

Public function Virtual Const

FString

 

GetArchiveName()

Returns the name of the Archive.

Public function Virtual

int64

 

TotalSize()

Returns total size of the backing data storage.