FArchiveStackTrace

Archive that stores a callstack for each of the Serialize calls and has the ability to compare itself to an existing package on disk and dump all the differences to log.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Serialization/ArchiveStackTrace.h

Include

#include "Serialization/ArchiveStackTrace.h"

Syntax

class FArchiveStackTrace : public FLargeMemoryWriter

Remarks

Archive that stores a callstack for each of the Serialize calls and has the ability to compare itself to an existing package on disk and dump all the differences to log.

Constructors

Name Description

Public function

FArchiveStackTrace

(
    UObject* InAsset,
    const TCHAR* InFilename,
    bool bInCollectCallstacks,
    const FArchiveDiffMap* InDiffM...
)

Destructors

Name Description

Public function Virtual

~FArchiveStackTrace()

Functions

Name Description

Public function

void

 

CompareWith

(
    const TCHAR* InFilename,
    const int64 TotalHeaderSize,
    const TCHAR* CallstackCutoffTe...,
    const int32 MaxDiffsToLog,
    TMap< FName, FArchiveDiffStats >& ...
)

Compares this archive with the given bytes from disk or FPackageData.

Public function

void

 

CompareWith

(
    const FPackageData& SourcePackage,
    const TCHAR* FileDisplayName,
    const int64 TotalHeaderSize,
    const TCHAR* CallstackCutoffTe...,
    const int32 MaxDiffsToLog,
    TMap< FName, FArchiveDiffStats >& ...
)

Public function

bool

 

GenerateDiffMap

(
    const TCHAR* InFilename,
    int64 TotalHeaderSize,
    int32 MaxDiffsToFind,
    FArchiveDiffMap& OutDiffMap
)

Generates a map of all differences between this archive and the given bytes from disk or FPackageData.

Public function

bool

 

GenerateDiffMap

(
    const FPackageData& SourcePackage,
    int64 TotalHeaderSize,
    int32 MaxDiffsToFind,
    FArchiveDiffMap& OutDiffMap
)

Public function Static

bool

 

IsIdentical

(
    const TCHAR* InFilename,
    int64 BufferSize,
    const uint8* BufferData
)

Compares the provided buffer with the given bytes from disk or FPackageData.

Public function Static

bool

 

IsIdentical

(
    const FPackageData& SourcePackage,
    int64 BufferSize,
    const uint8* BufferData
)

Compares the provided buffer with the given bytes from disk or FPackageData.

Public function Static

bool

 

LoadPackageIntoMemory

(
    const TCHAR* InFilename,
    FPackageData& OutPackageData,
    TUniquePtr< uint8 >& OutLoadedByte...
)

Helper function to load package contents into memory. Supports EDL packages.

Overridden from FArchive

Name Description

Public function Virtual

void

 

PopDebugDataString()

Public function Virtual

void

 

PushDebugDataString

(
    const FName& DebugData
)

Debug stack storage if you want to add data to the archive for usage further down the serialization stack this should be used in conjunction with the FScopeAddDebugData struct

Public function Virtual

void

 

Serialize

(
    void* Data,
    int64 Num
)

Overridden from FArchiveState

Name Description

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.

Classes

Name

Description

Public struct

FPackageData