FPackageTrailer::TryLoadBackwards

Serializes the trailer from the given archive BUT assumes that the seek position of the archive is at the end of the trailer and so will attempt to read the footer first and use that to find the start of the trailer in order to read the header.

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

bool TryLoadBackwards
(
    FArchive & Ar
)

Remarks

Serializes the trailer from the given archive BUT assumes that the seek position of the archive is at the end of the trailer and so will attempt to read the footer first and use that to find the start of the trailer in order to read the header.

Returns

True if a valid trailer was found and was able to be loaded, otherwise false.

Parameters

Parameter

Description

Ar

The archive to load the trailer from