FArchiveSaveCompressedProxy

[FArchive](API\Runtime\Core\Serialization\FArchive) Proxy to transparently write out compressed data to an array.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FArchiveState

FArchive

FArchiveSaveCompressedProxy

References

Module

Core

Header

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

Include

#include "Serialization/ArchiveSaveCompressedProxy.h"

Syntax

class FArchiveSaveCompressedProxy : public FArchive

Remarks

FArchive Proxy to transparently write out compressed data to an array.

Constructors

Name Description

Public function

FArchiveSaveCompressedProxy

(
    TArray< uint8 >& InCompressedData,
    ECompressionFlags InCompressionFlag...
)

Use the FName version of FArchiveSaveCompressedProxy constructor

Public function

FArchiveSaveCompressedProxy

(
    TArray< uint8 >& InCompressedData,
    FName InCompressionFormat,
    ECompressionFlags InCompressionFlag...
)

Destructors

Name Description

Public function Virtual

~FArchiveSaveCompressedProxy()

Destructor, flushing array if needed. Also frees temporary memory.

Overridden from FArchive

Name Description

Public function Virtual

void

 

Flush()

Flushes tmp data to array.

Public function Virtual

void

 

Seek

(
    int64 InPos
)

Seeking is only implemented internally for writing out compressed data and asserts otherwise.

Public function Virtual

void

 

Serialize

(
    void* Data,
    int64 Count
)

Serializes data to archive.

Overridden from FArchiveState

Name Description

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.

Enums

Name

Description

Private enum

EVS2015Redirector

This enum and the following constructor is a workaround for VC compiler bug that prevents using attributes on constructors without inline implementation.

Deprecated Functions

Name Description

Public function

 

FArchiveSaveCompressedProxy

(
    TArray< uint8 >& InCompressedData,
    ECompressionFlags InCompressionFlag...
)

Use the FName version of FArchiveSaveCompressedProxy constructor