engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 所有成员列表
FArchiveProxy类 参考

Base class for archive proxies. 更多...

#include <ArchiveProxy.h>

+ 类 FArchiveProxy 继承关系图:

Public 成员函数

virtual void AttachBulkData (UObject *Owner, FUntypedBulkData *BulkData) override
 Attaches/ associates the passed in bulk data object with the linker. 更多...
 
virtual bool AttachExternalReadDependency (FExternalReadCallback &ReadCallback) override
 Adds external read dependency 更多...
 
virtual bool Close () override
 Attempts to close and finalize any handles used for backing data storage, returns true if it succeeded.
 
virtual void DetachBulkData (FUntypedBulkData *BulkData, bool bEnsureBulkDataIsLoaded) override
 Detaches the passed in bulk data object from the linker. 更多...
 
CORE_API FArchiveProxy (FArchive &InInnerArchive)
 Creates and initializes a new instance of the archive proxy. 更多...
 
virtual void Flush () override
 Attempts to finish writing any buffered data to disk/permanent storage.
 
virtual void FlushCache () override
 Flushes cache and frees internal data.
 
virtual void ForceBlueprintFinalization () override
 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.
 
virtual FArchive * GetCacheableArchive () override
 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 FORCEINLINE bool IsProxyOf (FArchive *InOther) const
 Determine if the given archive is a valid "child" of this archive. 更多...
 
virtual void MarkScriptSerializationEnd (const UObject *Obj) override
 Called when an object stops serializing property data using script serialization.
 
virtual void MarkScriptSerializationStart (const UObject *Obj) override
 Called when an object begins serializing property data using script serialization.
 
virtual void MarkSearchableName (const UObject *TypeObject, const FName &ValueName) const override
 Called to register a reference to a specific name value, of type TypeObject (UEnum or UStruct normally). 更多...
 
virtual FArchive & operator<< (FField *&Value) override
 Serializes a Field value from or into this archive. 更多...
 
virtual FArchive & operator<< (FLazyObjectPtr &Value) override
 Serializes a lazy object pointer value from or into this archive. 更多...
 
virtual FArchive & operator<< (FName &Value) override
 Serializes an FName value from or into this archive. 更多...
 
virtual FArchive & operator<< (FSoftObjectPath &Value) override
 Serializes soft object paths from or into this archive. 更多...
 
virtual FArchive & operator<< (FSoftObjectPtr &Value) override
 Serializes asset pointer from or into this archive. 更多...
 
virtual FArchive & operator<< (FText &Value) override
 Serializes an FText value from or into an archive. 更多...
 
virtual FArchive & operator<< (FWeakObjectPtr &Value) override
 Serializes FWeakObjectPtr value from or into this archive. 更多...
 
virtual FArchive & operator<< (UObject *&Value) override
 Serializes an UObject value from or into this archive. 更多...
 
virtual FORCEINLINE void PopSerializedProperty (class FProperty *InProperty, const bool bIsEditorOnlyProperty)
 Pops editor-only marker from the stack of currently serialized properties
 
virtual bool Precache (int64 PrecacheOffset, int64 PrecacheSize) override
 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) override
 Tells the archive to attempt to preload the specified object so data can be loaded out of it.
 
virtual FORCEINLINE void PushSerializedProperty (class FProperty *InProperty, const bool bIsEditorOnlyProperty)
 Pushes editor-only marker to the stack of currently serialized properties
 
virtual void Seek (int64 InPos) override
 Attempts to set the current offset into backing data storage, this will do nothing if there is no storage.
 
virtual void SerializeIntPacked (uint32 &Value) override
 Packs int value into bytes of 7 bits with 8th bit for 'more'
 
virtual bool SetCompressionMap (TArray< FCompressedChunk > *CompressedChunks, ECompressionFlags CompressionFlags) override
 Sets mapping from offsets/ sizes that are going to be used for seeking and serialization to what is actually stored on disk. 更多...
 
- 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. 更多...
 

Protected 属性

FArchive & InnerArchive
 Holds the archive that this archive is a proxy to.
 

详细描述

Base class for archive proxies.

Archive proxies are archive types that modify the behavior of another archive type.

构造及析构函数说明

◆ FArchiveProxy()

CORE_API FArchiveProxy::FArchiveProxy ( FArchive &  InInnerArchive)

Creates and initializes a new instance of the archive proxy.

参数
InInnerArchiveThe inner archive to proxy.

成员函数说明

◆ AttachBulkData()

virtual void FArchiveProxy::AttachBulkData ( UObject *  Owner,
FUntypedBulkData *  BulkData 
)
inlineoverridevirtual

Attaches/ associates the passed in bulk data object with the linker.

参数
OwnerUObject owning the bulk data
BulkDataBulk data object to associate

重载 FArchive .

◆ AttachExternalReadDependency()

virtual bool FArchiveProxy::AttachExternalReadDependency ( FExternalReadCallback &  ReadCallback)
inlineoverridevirtual

Adds external read dependency

返回
true if dependency has been added, false if Archive does not support them

重载 FArchive .

◆ DetachBulkData()

virtual void FArchiveProxy::DetachBulkData ( FUntypedBulkData *  BulkData,
bool  bEnsureBulkDataIsLoaded 
)
inlineoverridevirtual

Detaches the passed in bulk data object from the linker.

参数
BulkDataBulk data object to detach
bEnsureBulkDataIsLoadedWhether to ensure that the bulk data is loaded before detaching

重载 FArchive .

◆ GetCacheableArchive()

virtual FArchive * FArchiveProxy::GetCacheableArchive ( )
inlineoverridevirtual

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.

If the archive is actually a temporary proxy to another archive, and has a shorter lifecycle than the source archive, it should return either a pointer to the underlying archive, or if the data becomes inaccessible when the proxy object disappears (as is the case with text format archives) then nullptr

重载 FArchive .

◆ IsProxyOf()

virtual FORCEINLINE bool FArchiveProxy::IsProxyOf ( FArchive *  InOther) const
inlinevirtual

Determine if the given archive is a valid "child" of this archive.

In general, this means "is exactly the same" but this function allows a derived archive to support "child" or "internal" archives which are different objects that proxy the original one in some way.

参数
BulkDataBulk data object to detach
bEnsureBulkDataIsLoadedWhether to ensure that the bulk data is loaded before detaching

重载 FArchive .

◆ MarkSearchableName()

virtual void FArchiveProxy::MarkSearchableName ( const UObject *  TypeObject,
const FName &  ValueName 
) const
inlineoverridevirtual

Called to register a reference to a specific name value, of type TypeObject (UEnum or UStruct normally).

Const so it can be called from PostSerialize

重载 FArchive .

◆ operator<<() [1/8]

virtual FArchive & FArchiveProxy::operator<< ( FField *&  Value)
inlineoverridevirtual

Serializes a Field value from or into this archive.

This operator can be implemented by sub-classes that wish to serialize UObject instances.

参数
ValueThe value to serialize.
返回
This instance.

重载 FArchive .

被 FPropertyProxyArchive 重载.

◆ operator<<() [2/8]

virtual FArchive & FArchiveProxy::operator<< ( FLazyObjectPtr &  Value)
inlineoverridevirtual

Serializes a lazy object pointer value from or into this archive.

Most of the time, FLazyObjectPtrs are serialized as UObject*, but some archives need to override this.

参数
ValueThe value to serialize.
返回
This instance.

重载 FArchive .

◆ operator<<() [3/8]

virtual FArchive & FArchiveProxy::operator<< ( FName &  Value)
inlineoverridevirtual

Serializes an FName value from or into this archive.

This operator can be implemented by sub-classes that wish to serialize FName instances.

参数
ValueThe value to serialize.
返回
This instance.

重载 FArchive .

被 FNameAsStringProxyArchive 重载.

◆ operator<<() [4/8]

virtual FArchive & FArchiveProxy::operator<< ( FSoftObjectPath &  Value)
inlineoverridevirtual

Serializes soft object paths from or into this archive.

参数
ValueSoft object path to serialize.
返回
This instance.

重载 FArchive .

被 FObjectAndNameAsStringProxyArchive 重载.

◆ operator<<() [5/8]

virtual FArchive & FArchiveProxy::operator<< ( FSoftObjectPtr &  Value)
inlineoverridevirtual

Serializes asset pointer from or into this archive.

Most of the time, FSoftObjectPtr are serialized as UObject *, but some archives need to override this.

参数
ValueThe asset pointer to serialize.
返回
This instance.

重载 FArchive .

被 FObjectAndNameAsStringProxyArchive 重载.

◆ operator<<() [6/8]

virtual FArchive & FArchiveProxy::operator<< ( FText &  Value)
inlineoverridevirtual

Serializes an FText value from or into an archive.

参数
ArThe archive to serialize from or to.
ValueThe value to serialize.

重载 FArchive .

◆ operator<<() [7/8]

virtual FArchive & FArchiveProxy::operator<< ( FWeakObjectPtr &  Value)
inlineoverridevirtual

Serializes FWeakObjectPtr value from or into this archive.

This operator can be implemented by sub-classes that wish to serialize FWeakObjectPtr instances.

参数
ValueThe value to serialize.
返回
This instance.

重载 FArchive .

被 FObjectAndNameAsStringProxyArchive 重载.

◆ operator<<() [8/8]

virtual FArchive & FArchiveProxy::operator<< ( UObject *&  Value)
inlineoverridevirtual

Serializes an UObject value from or into this archive.

This operator can be implemented by sub-classes that wish to serialize UObject instances.

参数
ValueThe value to serialize.
返回
This instance.

重载 FArchive .

被 FObjectAndNameAsStringProxyArchive 重载.

◆ Precache()

virtual bool FArchiveProxy::Precache ( int64  PrecacheOffset,
int64  PrecacheSize 
)
inlineoverridevirtual

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.

The function returns whether the precache operation has completed or not which is an important hint for code knowing that it deals with potential async I/O. The archive is free to either not implement this function or only partially precache so it is required that given sufficient time the function will return true. Archives not based on async I/O should always return true.

This function will not change the current archive position.

参数
PrecacheOffsetOffset at which to begin precaching.
PrecacheSizeNumber of bytes to precache
返回
false if precache operation is still pending, true otherwise

重载 FArchive .

◆ SetCompressionMap()

virtual bool FArchiveProxy::SetCompressionMap ( TArray< FCompressedChunk > *  CompressedChunks,
ECompressionFlags  CompressionFlags 
)
inlineoverridevirtual

Sets mapping from offsets/ sizes that are going to be used for seeking and serialization to what is actually stored on disk.

If the archive supports dealing with compression in this way it is going to return true.

参数
CompressedChunksPointer to array containing information about [un]compressed chunks
CompressionFlagsFlags determining compression format associated with mapping
返回
true if archive supports translating offsets & uncompressing on read, false otherwise

重载 FArchive .


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