FMemoryArchive

Base class for serializing arbitrary data in memory.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Core

Header

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

Include

#include "Serialization/MemoryArchive.h"

Syntax

class FMemoryArchive : public FArchive

Remarks

Base class for serializing arbitrary data in memory.

Variables

Name Description

Protected variable

int64

 

Offset

Constructors

Name Description

Protected function

FMemoryArchive()

Marked as protected to avoid instantiating this class directly

Overridden from FArchive

Name Description

Public function Virtual

void

 

Seek

(
    int64 InPos
)

Attempts to set the current offset into backing data storage, this will do nothing if there is no storage.

Overridden from FArchiveState

Name Description

Public function Virtual Const

FString

 

GetArchiveName()

Returns the name of the Archive.

Public function Virtual

int64

 

Tell()

Returns the current location within the backing data storage, which can possibly be passed to Seek later to restore a read/write location.

Operators

Name Description

Public function Virtual

FArchive &

 

operator<<

(
    FName& Value
)

Serializes an FName value from or into this archive.

Public function Virtual

FArchive &

 

operator<<

(
    UObject*& Value
)

Serializes an UObject value from or into this archive.