FPackageTrailerBuilder::AddPayload

Adds a payload to the builder to be written to the 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

void AddPayload
(
    const Virtualization::FPayloadId & Identifier,
    FCompressedBuffer Payload,
    AdditionalDataCallback && Callback
)

Remarks

Adds a payload to the builder to be written to the trailer. Duplicate payloads will be discarded and only a single instance stored in the trailer.

Parameters

Parameter

Description

Identifier

The identifier of the payload

Payload

The payload data

Callback

This callback will be invoked once the FPackageTrailer has been built and appended to disk.