engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
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. 更多...

#include <ArchiveStackTrace.h>

+ 类 FArchiveStackTrace 继承关系图:

Public 成员函数

void CompareWith (const TCHAR *InFilename, const int64 TotalHeaderSize, const TCHAR *CallstackCutoffText, const int32 MaxDiffsToLog, TMap< FName, FArchiveDiffStats > &OutStats)
 Compares the contents of this archive with the package on disk. 更多...
 
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 成员函数 继承自 FLargeMemoryWriter
virtual FString GetArchiveName () const override
 Returns the name of the Archive. 更多...
 
uint8 * GetData () const
 Returns the written data. 更多...
 
FORCEINLINE uint8 * ReleaseOwnership ()
 Releases ownership of the written data 更多...
 
virtual int64 TotalSize () override
 Gets the total size of the data written
 
- Public 成员函数 继承自 FMemoryArchive
virtual FString GetArchiveName () const
 Returns the name of the Archive. 更多...
 
virtual FArchive & operator<< (class FName &N) override
 Serializes an FName value from or into this archive. 更多...
 
virtual FArchive & operator<< (class UObject *&Res) override
 Serializes an UObject value from or into this archive. 更多...
 
virtual FArchive & operator<< (FField *&Value)
 Serializes a Field value from or into this archive. 更多...
 
virtual FArchive & operator<< (FName &Value)
 Serializes an FName value from or into this archive. 更多...
 
virtual FArchive & operator<< (FText &Value)
 Serializes an FText value from or into an archive. 更多...
 
virtual FArchive & operator<< (struct FLazyObjectPtr &Value)
 Serializes a lazy object pointer value from or into this archive. 更多...
 
virtual FArchive & operator<< (struct FSoftObjectPath &Value)
 Serializes soft object paths from or into this archive. 更多...
 
virtual FArchive & operator<< (struct FSoftObjectPtr &Value)
 Serializes asset pointer from or into this archive. 更多...
 
virtual FArchive & operator<< (struct FWeakObjectPtr &Value)
 Serializes FWeakObjectPtr value from or into this archive. 更多...
 
template<class T >
FORCEINLINE FArchive & operator<< (TCheckedObjPtr< T > &Value)
 Serializes a UObject wrapped in a TCheckedObjPtr container, using the above operator, and verifies the serialized object is derived from the correct base class, to prevent illegal casting. 更多...
 
virtual FArchive & operator<< (UObject *&Value)
 Serializes an UObject value from or into this archive. 更多...
 
void Seek (int64 InPos) final
 Attempts to set the current offset into backing data storage, this will do nothing if there is no storage.
 
- Public 成员函数 继承自 FArchive
virtual void AttachBulkData (UObject *Owner, FUntypedBulkData *BulkData)
 Attaches/ associates the passed in bulk data object with the linker. 更多...
 
virtual bool AttachExternalReadDependency (FExternalReadCallback &ReadCallback)
 Adds external read dependency 更多...
 
FORCEINLINE FArchive & ByteOrderSerialize (void *V, int32 Length)
 Serialize data of Length bytes, taking into account byte swapping if needed.
 
void ByteSwap (void *V, int32 Length)
 Used to do byte swapping on small items. 更多...
 
virtual bool Close ()
 Attempts to close and finalize any handles used for backing data storage, returns true if it succeeded.
 
virtual void DetachBulkData (FUntypedBulkData *BulkData, bool bEnsureBulkDataIsLoaded)
 Detaches the passed in bulk data object from the linker. 更多...
 
virtual void Flush ()
 Attempts to finish writing any buffered data to disk/permanent storage.
 
virtual void FlushCache ()
 Flushes cache and frees internal data.
 
virtual void ForceBlueprintFinalization ()
 Inform the archive that a blueprint would like to force finalization, normally this is triggered by CDO load, but if there's no CDO we force finalization.
 
FArchiveState & GetArchiveState ()
 Returns the low level archive state for this archive.
 
virtual FArchive * GetCacheableArchive ()
 Returns a pointer to an archive that represents the same data that the current archive covers, but that can be cached and reused later In the case of standard archives, this function will just return a pointer to itself. 更多...
 
virtual bool IsProxyOf (FArchive *InOther) const
 Determine if the given archive is a valid "child" of this archive. 更多...
 
virtual void MarkScriptSerializationEnd (const UObject *Obj)
 Called when an object stops serializing property data using script serialization.
 
virtual void MarkScriptSerializationStart (const UObject *Obj)
 Called when an object begins serializing property data using script serialization.
 
virtual void MarkSearchableName (const UObject *TypeObject, const FName &ValueName) const
 Called to register a reference to a specific name value, of type TypeObject (UEnum or UStruct normally). 更多...
 
virtual FArchive & operator<< (FField *&Value)
 Serializes a Field value from or into this archive. 更多...
 
virtual FArchive & operator<< (FName &Value)
 Serializes an FName value from or into this archive. 更多...
 
virtual FArchive & operator<< (FText &Value)
 Serializes an FText value from or into an archive. 更多...
 
virtual FArchive & operator<< (struct FLazyObjectPtr &Value)
 Serializes a lazy object pointer value from or into this archive. 更多...
 
virtual FArchive & operator<< (struct FSoftObjectPath &Value)
 Serializes soft object paths from or into this archive. 更多...
 
virtual FArchive & operator<< (struct FSoftObjectPtr &Value)
 Serializes asset pointer from or into this archive. 更多...
 
virtual FArchive & operator<< (struct FWeakObjectPtr &Value)
 Serializes FWeakObjectPtr value from or into this archive. 更多...
 
template<class T >
FORCEINLINE FArchive & operator<< (TCheckedObjPtr< T > &Value)
 Serializes a UObject wrapped in a TCheckedObjPtr container, using the above operator, and verifies the serialized object is derived from the correct base class, to prevent illegal casting. 更多...
 
virtual FArchive & operator<< (UObject *&Value)
 Serializes an UObject value from or into this archive. 更多...
 
virtual void PopSerializedProperty (class FProperty *InProperty, const bool bIsEditorOnlyProperty)
 Pop a property that was previously being serialized off the property stack 更多...
 
virtual bool Precache (int64 PrecacheOffset, int64 PrecacheSize)
 Hint the archive that the region starting at passed in offset and spanning the passed in size is going to be read soon and should be precached. 更多...
 
virtual void Preload (UObject *Object)
 Tells the archive to attempt to preload the specified object so data can be loaded out of it.
 
virtual void PushFileRegionType (EFileRegionType Type)
 Called whilst cooking to provide file region hints to the cooker.
 
virtual void PushSerializedProperty (class FProperty *InProperty, const bool bIsEditorOnlyProperty)
 Push a property that is currently being serialized onto the property stack 更多...
 
virtual void Seek (int64 InPos)
 Attempts to set the current offset into backing data storage, this will do nothing if there is no storage.
 
void SerializeCompressed (void *V, int64 Length, FName CompressionFormat, ECompressionFlags Flags=COMPRESS_NoFlags, bool bTreatBufferAsFileReader=false)
 Serializes and compresses/ uncompresses data. 更多...
 
virtual void SerializeIntPacked (uint32 &Value)
 Packs int value into bytes of 7 bits with 8th bit for 'more'
 
virtual bool SetCompressionMap (TArray< struct FCompressedChunk > *CompressedChunks, ECompressionFlags CompressionFlags)
 Sets mapping from offsets/ sizes that are going to be used for seeking and serialization to what is actually stored on disk. 更多...
 
void StartSerializingDefaults ()
 Sets a flag indicating that this archive is currently serializing class/struct defaults.
 
void StopSerializingDefaults ()
 Indicate that this archive is no longer serializing class/struct defaults.
 
virtual void UsingCustomVersion (const struct FGuid &Guid)
 Registers the custom version to the archive. 更多...
 

静态 Public 成员函数

static bool IsIdentical (const TCHAR *InFilename, int64 BufferSize, const uint8 *BufferData)
 Compares the specified file on disk with the provided buffer
 
static bool LoadPackageIntoMemory (const TCHAR *InFilename, FPackageData &OutPackageData)
 Helper function to load package contents into memory. 更多...
 

额外继承的成员函数

- Protected 成员函数 继承自 FMemoryArchive
 FMemoryArchive ()
 Marked as protected to avoid instantiating this class directly
 

详细描述

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.

成员函数说明

◆ CompareWith()

void FArchiveStackTrace::CompareWith ( const TCHAR *  InFilename,
const int64  TotalHeaderSize,
const TCHAR *  CallstackCutoffText,
const int32  MaxDiffsToLog,
TMap< FName, FArchiveDiffStats > &  OutStats 
)

Compares the contents of this archive with the package on disk.

Dumps all differences to log.

◆ LoadPackageIntoMemory()

static bool FArchiveStackTrace::LoadPackageIntoMemory ( const TCHAR *  InFilename,
FPackageData &  OutPackageData 
)
static

Helper function to load package contents into memory.

Supports EDL packages.


该类的文档由以下文件生成: