FLinkerSave

Handles saving Unreal package files.

Windows
MacOS
Linux

Inheritance Hierarchy

FLinker

FArchiveUObject

FLinkerSave

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/LinkerSave.h

Include

#include "UObject/LinkerSave.h"

Syntax

class FLinkerSave :
    public FLinker,
    public FArchiveUObject

Remarks

Handles saving Unreal package files.

Variables

Name Description

Public variable

TArray< FBulkDa...

 

BulkDataToAppend

Public variable

FPackageIndex

 

CurrentlySavingExport

Public variable

TArray< FPackag...

 

DepListForErrorChecking

Public variable

TArray< FFileRe...

 

FileRegions

Public variable

TMap< FNameEntr...

 

NameIndices

Index array - location of the name in the NameMap array for each FName is stored in the NameIndices array using the FName's Index

Public variable

TMap< UObject &...

 

ObjectIndicesMap

Index array - location of the resource for a UObject is stored in the ObjectIndices array using the UObject's Index

Public variable

TRefCountPtr< F...

 

SaveContext

Save context associated with this linker

Public variable

FArchive *

 

Saver

Variables.

Public variable

TMap< const UOb...

 

SearchableNamesObjectMap

List of Searchable Names, by object containing them. This gets turned into package indices later

Constructors

Name Description

Public function

FLinkerSave

(
    UPackage* InParent,
    bool bForceByteSwapping,
    bool bInSaveUnversioned
)

Constructor for memory writer

Public function

FLinkerSave

(
    UPackage* InParent,
    const TCHAR* InFilename,
    bool bForceByteSwapping,
    bool bInSaveUnversioned
)

Constructor for file writer

Public function

FLinkerSave

(
    UPackage* InParent,
    FArchive* InSaver,
    bool bForceByteSwapping,
    bool bInSaveUnversioned
)

Constructor for custom savers. The linker assumes ownership of the custom saver.

Destructors

Name Description

Public function Virtual

~FLinkerSave()

Functions

Name Description

Public function

bool

 

CloseAndDestroySaver()

Closes and deletes the Saver (file, memory or custom writer) which will close any associated file handle.

Public function Const

int32

 

MapName

(
    FNameEntryId Name
)

Returns the appropriate name index for the source name, or 0 if not found in NameIndices

Public function Const

FPackageInde...

 

MapObject

(
    const UObject* Object
)

Returns the appropriate package index for the source object, or default value if not found in ObjectIndicesMap

Public function Static

ELinkerType:...

 

StaticType()

Public function

void

 

ThisRequiresLocalizationGather()

Sets a flag indicating that this archive contains data required to be gathered for localization.

Overridden from FArchive

Name Description

Public function Virtual

void

 

PopDebugDataString()

Public function Virtual

void

 

PushDebugDataString

(
    const FName& DebugData
)

Proxy for debugdata

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.

Public function Virtual

void

 

Serialize

(
    void* V,
    int64 Length
)

Public function Virtual

void

 

UsingCustomVersion

(
    const FGuid& Guid
)

Registers the custom version to the archive.

Overridden from FArchiveState

Name Description

Public function Virtual Const

FString

 

GetArchiveName()

Returns the name of the Archive.

Public function Virtual

FLinker *...

 

GetLinker()

If this archive is a FLinkerLoad or FLinkerSave, returns a pointer to the FLinker portion.

Public function Virtual

FUObjectSeri...

 

GetSerializeContext()

Gets the current UObject serialization context for this archive.

Public function Virtual

void

 

SetSerializeContext

(
    FUObjectSerializeContext* InLo...
)

Sets the current UObject serialization context for this 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<<

(
    FLazyObjectPtr& Value
)

Serializes a lazy object pointer value from or into this archive.

Public function Virtual

FArchive &

 

operator<<

(
    UObject*& Value
)

Serializes an UObject value from or into this archive.

Classes

Name

Description

Public struct

FBulkDataStorageInfo

List of bulkdata that needs to be stored at the end of the file

Constants

Name

Description

PackagesToScriptSHAMap

A mapping of package name to generated script SHA keys

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss