Base class for archives that can be used for loading, saving, and garbage collecting in a byte order neutral way. 更多...
#include <Archive.h>
类 FArchive 继承关系图:Public 成员函数 | |
| 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. 更多... | |
友元 | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, ANSICHAR &Value) |
| Serializes an ANSICHAR value from or into an archive. 更多... | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, bool &D) |
| Serializes a Boolean value from or into an archive. 更多... | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, double &Value) |
| Serializes a double precision floating point value from or into an archive. 更多... | |
| template<typename EnumType , typename = typename TEnableIf<TIsEnumClass<EnumType>::Value>::Type> | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, EnumType &Value) |
| Serializes enum classes as their underlying type. 更多... | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, float &Value) |
| Serializes a single precision floating point value from or into an archive. 更多... | |
| CORE_API FArchive & | operator<< (FArchive &Ar, FString &Value) |
| Serializes an FString value from or into an archive. 更多... | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, int16 &Value) |
| Serializes a signed 16-bit integer value from or into an archive. 更多... | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, int32 &Value) |
| Serializes a signed 32-bit integer value from or into an archive. 更多... | |
| FArchive & | operator<< (FArchive &Ar, int64 &Value) |
| Serializes a signed 64-bit integer value from or into an archive. 更多... | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, int8 &Value) |
| Serializes a signed 8-bit integer value from or into an archive. 更多... | |
| FArchive & | operator<< (FArchive &Ar, struct FIntRect &Value) |
| Serializes an FIntRect value from or into an archive. 更多... | |
| template<class TEnum > | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, TEnumAsByte< TEnum > &Value) |
| Serializes an enumeration value from or into an archive. 更多... | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, uint16 &Value) |
| Serializes an unsigned 16-bit integer value from or into an archive. 更多... | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, uint32 &Value) |
| Serializes an unsigned 32-bit integer value from or into an archive. 更多... | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, uint64 &Value) |
| Serializes a unsigned 64-bit integer value from or into an archive. 更多... | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, uint8 &Value) |
| Serializes an unsigned 8-bit integer value from or into an archive. 更多... | |
| FORCEINLINE friend FArchive & | operator<< (FArchive &Ar, WIDECHAR &Value) |
| Serializes a WIDECHAR value from or into an archive. 更多... | |
Base class for archives that can be used for loading, saving, and garbage collecting in a byte order neutral way.
|
inlinevirtual |
Attaches/ associates the passed in bulk data object with the linker.
| Owner | UObject owning the bulk data |
| BulkData | Bulk data object to associate |
被 FArchiveProxy 重载.
|
inlinevirtual |
Adds external read dependency
被 FArchiveProxy 重载.
| void FArchive::ByteSwap | ( | void * | V, |
| int32 | Length | ||
| ) |
Used to do byte swapping on small items.
This does not happen usually, so we don't want it inline.
|
inlinevirtual |
Detaches the passed in bulk data object from the linker.
| BulkData | Bulk data object to detach |
| bEnsureBulkDataIsLoaded | Whether to ensure that the bulk data is loaded before detaching |
被 FArchiveProxy 重载.
|
inlinevirtual |
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
被 FArchiveProxy 重载.
|
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.
| BulkData | Bulk data object to detach |
| bEnsureBulkDataIsLoaded | Whether to ensure that the bulk data is loaded before detaching |
被 FArchiveProxy 重载.
|
inlinevirtual |
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
被 FArchiveProxy 重载.
Serializes a Field value from or into this archive.
This operator can be implemented by sub-classes that wish to serialize UObject instances.
| Value | The value to serialize. |
被 FMemoryArchive, FArchiveUObject, FBulkDataReader, FBulkDataWriter, FLinkerSave, FArchiveProxy , 以及 FPropertyProxyArchive 重载.
Serializes an FName value from or into this archive.
This operator can be implemented by sub-classes that wish to serialize FName instances.
| Value | The value to serialize. |
被 FNameAsStringProxyArchive, FMemoryArchive, FArchiveObjectCrc32, FBulkDataReader, FBulkDataWriter, FLinkerSave, FObjectReader, FObjectWriter, FControlChannelOutBunch, FNetBitWriter, FNetBitReader, FMemoryArchive, FArchiveUObject, FBulkDataReader, FBulkDataWriter, FLinkerSave , 以及 FArchiveProxy 重载.
|
virtual |
Serializes an FText value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
被 FMemoryArchive, FArchiveUObject, FBulkDataReader, FBulkDataWriter, FLinkerSave , 以及 FArchiveProxy 重载.
|
virtual |
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.
| Value | The value to serialize. |
被 FLinkerSave, FObjectReader, FArchiveProxy, FArchiveUObject, FObjectWriter, FLinkerSave, FMemoryArchive, FArchiveUObject, FBulkDataReader, FBulkDataWriter , 以及 FLinkerSave 重载.
|
virtual |
Serializes soft object paths from or into this archive.
| Value | Soft object path to serialize. |
被 FArchiveProxy, FArchiveUObject, FObjectAndNameAsStringProxyArchive, FObjectReader, FObjectWriter, FNetBitWriter, FNetBitReader, FLinkerSave, FMemoryArchive, FArchiveUObject, FBulkDataReader, FBulkDataWriter , 以及 FLinkerSave 重载.
|
virtual |
Serializes asset pointer from or into this archive.
Most of the time, FSoftObjectPtr are serialized as UObject *, but some archives need to override this.
| Value | The asset pointer to serialize. |
被 FArchiveProxy, FArchiveUObject, FObjectAndNameAsStringProxyArchive, FObjectReader, FObjectWriter, FNetBitWriter, FNetBitReader, FLinkerSave, FMemoryArchive, FArchiveUObject, FBulkDataReader, FBulkDataWriter , 以及 FLinkerSave 重载.
|
virtual |
Serializes FWeakObjectPtr value from or into this archive.
This operator can be implemented by sub-classes that wish to serialize FWeakObjectPtr instances.
| Value | The value to serialize. |
被 FObjectAndNameAsStringProxyArchive, FArchiveProxy, FArchiveUObject, FObjectReader, FObjectWriter, FLinkerSave, FMemoryArchive, FArchiveUObject, FBulkDataReader, FBulkDataWriter, FLinkerSave, FNetBitWriter , 以及 FNetBitReader 重载.
|
inline |
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.
| Value | The value to serialize. |
Serializes an UObject value from or into this archive.
This operator can be implemented by sub-classes that wish to serialize UObject instances.
| Value | The value to serialize. |
被 FArchiveObjectCrc32, FMemoryArchive, FArchiveReplaceObjectRef< T >, FArchiveReplaceOrClearExternalReferences< T >, FLinkerSave, FObjectAndNameAsStringProxyArchive, FArchiveReferenceMarker, FControlChannelOutBunch, FNetBitWriter, FNetBitReader, FObjectReader, FObjectWriter, FMemoryArchive, FArchiveUObject, FBulkDataReader, FBulkDataWriter, FLinkerSave , 以及 FArchiveProxy 重载.
|
virtual |
Pop a property that was previously being serialized off the property stack
| InProperty | Pointer to the property that was previously being serialized |
| bIsEditorOnlyProperty | True if the property is editor only (call FProperty::IsEditorOnlyProperty to work this out, as the archive can't since it can't access CoreUObject types) |
被 FArchiveProxy 重载.
|
inlinevirtual |
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.
| PrecacheOffset | Offset at which to begin precaching. |
| PrecacheSize | Number of bytes to precache |
被 FArchiveProxy 重载.
|
virtual |
Push a property that is currently being serialized onto the property stack
| InProperty | Pointer to the property that is currently being serialized |
| bIsEditorOnlyProperty | True if the property is editor only (call FProperty::IsEditorOnlyProperty to work this out, as the archive can't since it can't access CoreUObject types) |
被 FArchiveProxy 重载.
| void FArchive::SerializeCompressed | ( | void * | V, |
| int64 | Length, | ||
| FName | CompressionFormat, | ||
| ECompressionFlags | Flags = COMPRESS_NoFlags, |
||
| bool | bTreatBufferAsFileReader = false |
||
| ) |
Serializes and compresses/ uncompresses data.
This is a shared helper function for compression support. The data is saved in a way compatible with FIOSystem::LoadCompressedData.
| V | Data pointer to serialize data from/ to |
| Length | Length of source data if we're saving, unused otherwise |
| Flags | Flags to control what method to use for [de]compression and optionally control memory vs speed when compressing |
| bTreatBufferAsFileReader | true if V is actually an FArchive, which is used when saving to read data - helps to avoid single huge allocations of source data |
| bUsePlatformBitWindow | use a platform specific bitwindow setting |
|
inlinevirtual |
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.
| CompressedChunks | Pointer to array containing information about [un]compressed chunks |
| CompressionFlags | Flags determining compression format associated with mapping |
被 FArchiveProxy 重载.
|
virtual |
Registers the custom version to the archive.
This is used to inform the archive that custom version information is about to be stored. There is no effect when the archive is being loaded from.
| Guid | The guid of the custom version. This must have previously been registered with FCustomVersionRegistration. |
被 FLinkerSave 重载.
Serializes an ANSICHAR value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes a Boolean value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes a double precision floating point value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
|
friend |
Serializes enum classes as their underlying type.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes a single precision floating point value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes an FString value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes a signed 16-bit integer value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes a signed 32-bit integer value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes a signed 64-bit integer value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes a signed 8-bit integer value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes an FIntRect value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
|
friend |
Serializes an enumeration value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes an unsigned 16-bit integer value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes an unsigned 32-bit integer value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes a unsigned 64-bit integer value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes an unsigned 8-bit integer value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Serializes a WIDECHAR value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |