FPackageTrailer::LoadLocalPayload

Loads a payload that is stored locally within the package trailer.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/PackageTrailer.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/PackageTrailer.cpp

Syntax

FCompressedBuffer LoadLocalPayload
(
    const Virtualization::FPayloadId & Id,
    FArchive & Ar
) const

Remarks

Loads a payload that is stored locally within the package trailer. Payloads stored externally (either referenced or virtualized) will not load.

Returns

The payload in the form of a FCompressedBuffer. If the payload does not exist in the trailer or is not stored locally in the trailer then the FCompressedBuffer will be null.

Parameters

Parameter

Description

Id

The payload to load

Ar

The archive from which the payload trailer was also loaded from