Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/PackageTrailer.h |
| Include | #include "UObject/PackageTrailer.h" |
Syntax
class FPackageTrailerBuilder
Remarks
This class is used to build a FPackageTrailer and write it disk.
While saving a package, payloads should be added to a FPackageTrailer via AddPayload then once the package has been saved to disk BuildAndAppendTrailer should be called.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPackageTrailerBuilder
(
const FName& InPackageName |
|||
FPackageTrailerBuilder
(
FString&& DebugContext |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddPayload
(
const FIoHash& Identifier, |
Adds a payload to the builder to be written to the trailer. | |
| void | AddPayload
(
const FIoHash& Identifier, |
||
| void | AddVirtualizedPayload
(
const FIoHash& Identifier, |
Adds an already virtualized payload to the builder to be written to the trailer. | |
| bool | BuildAndAppendTrailer
(
FLinkerSave* Linker, |
||
| bool | BuildAndAppendTrailer
(
FLinkerSave* Linker, |
||
| uint64 | Returns the length of the trailer (in bytes) that the builder would currently create. | ||
| FPackageTrailerBuilder | CreateFromTrailer
(
const FPackageTrailer& Trailer, |
||
| FPackageTrailerBuilder | CreateFromTrailer
(
const FPackageTrailer& Trailer, |
Creates a builder from a pre-existing FPackageTrailer. | |
| TUniquePtr< UE::FPackageTrailerBuilder > | CreateReferenceToTrailer
(
const FPackageTrailer& Trailer, |
||
| TUniquePtr< UE::FPackageTrailerBuilder > | CreateReferenceToTrailer
(
const FPackageTrailer& Trailer, |
Creates a builder from a pre-existing FPackageTrailer that will will reference the local payloads of the source trailer. | |
| const FString & | Returns the debug context associated with the builder, used for adding further description to error messages | ||
| int32 | Returns the number of payload entries in the builder with the access mode EPayloadAccessMode::Local | ||
| int32 | Returns the total number of payload entries in the builder | ||
| int32 | Returns the number of payload entries in the builder with the access mode EPayloadAccessMode::Referenced | ||
| int32 | Returns the number of payload entries in the builder with the access mode EPayloadAccessMode::Virtualized | ||
| bool | IsEmpty () |
Returns if the builder has any payload entries or not | |
| bool | IsLocalPayloadEntry
(
const FIoHash& Identifier |
||
| bool | IsReferencedPayloadEntry
(
const FIoHash& Identifier |
||
| bool | IsVirtualizedPayloadEntry
(
const FIoHash& Identifier |
||
| bool | UpdatePayloadAsLocal
(
const FIoHash& Identifier, |
Allows the caller to replace a payload in the builder that is already marked as virtualized and replace it with one that will be stored locally. |
Typedefs
| Name | Description |
|---|---|
| AdditionalDataCallback |