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.

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 the contents of this archive with the package on disk. Dumps all differences to log.

Public function

bool

 

GenerateDiffMap

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

Generates a map of all differences between the package on disk and this file.

Public function Static

bool

 

IsIdentical

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

Compares the specified file on disk with the provided buffer

Public function Static

bool

 

LoadPackageIntoMemory

(
    const TCHAR* InFilename,
    FPackageData& OutPackageData
)

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss