Navigation
Unreal Engine C++ API Reference > Runtime > Core > Serialization
Inheritance Hierarchy
- FArchiveState
- FArchive
- FArchiveFileReaderGeneric
- FMovieSceneArchiveFileReader
- FArchiveFileWriterGeneric
- FMovieSceneArchiveFileWriter
- FArchiveLoadCompressedProxy
- FArchiveMD5
- FArchiveProxy
- FActorDescArchive
- FArchiveFromStructuredArchiveImpl
- FArchiveUObjectFromStructuredArchiveImpl
- FArchiveStackTraceWriter
- FChaosArchive
- FHierarchicalLogArchive
- FMaterialResourceProxyReader
- FNameAsStringIndexProxyArchive
- FNameAsStringProxyArchive
- FPropertyProxyArchive
- FShaderSaveArchive
- FArchiveSaveCompressedProxy
- FArchiveUObject
- FArchiveCountMem
- FArchiveCrc32
- FArchiveFindCulprit
- FArchiveGenerateReferenceGraph
- FArchiveHasReferences
- FArchiveObjectCrc32
- FZoneGraphObjectCRC32
- FArchiveObjectPropertyMapper
- FArchiveReferenceMarker
- FArchiveReplaceObjectRefBase
- FArchiveReplaceObjectRef
- FArchiveReplaceObjectAndStructPropertyRef
- FArchiveReplaceOrClearExternalReferences
- FArchiveScriptReferenceCollector
- FArchiveShowReferences
- FArchiveTopLevelReferenceCollector
- FDuplicateDataReader
- FDuplicateDataWriter
- FFindAssetsArchive
- FFindReferencersArchive
- FKeyBuilder
- FLinkerLoad
- FLinkerSave
- FReferenceCollectorArchive
- FSerializedObjectDataReader
- FTransaction::FObjectRecord::FReader
- FSerializedObjectDataWriterCommon
- FDiffableObjectDataWriter
- FSerializedObjectDataWriter
- FTransaction::FObjectRecord::FWriter
- FSoftObjectPathFixupArchive
- FArchiveWithDelegate
- FAsyncWriter
- FBitArchive
- FBitReader
- FNetBitReader
- FInBunch
- FBitWriter
- FBufferReaderBase
- FBufferReader
- FBufferReaderWithSHA
- FBulkDataReader
- FEditorBulkDataReader
- FBufferWriter
- FBuildVersionBuilder
- FBulkDataWriter
- FEditorBulkDataWriter
- FHttpStreamFArchive
- FLocalFileStreamFArchive
- FMemoryArchive
- FArrayReader
- FConcertIdentifierRewriter
- FConcertSyncObjectRewriter
- FGLTFMemoryArchive
- FLargeMemoryReader
- FArchiveStackTraceReader
- FLargeMemoryWriter
- FArchiveStackTrace
- FArchiveStackTraceMemoryWriter
- FMemoryReader
- FConcertIdentifierReader
- FConcertSyncObjectReader
- FMLAdapterMemoryReader
- FMemoryReaderView
- FObjectReader
- FBinaryObjectReader
- FStaticMemoryReader
- TMemoryHasher
- TMemoryWriter
- FMemoryWriter
- FConcertIdentifierWriter
- FConcertSyncObjectWriter
- FMaterialResourceMemoryWriter
- FMLAdapterMemoryWriter
- FObjectWriter
- FBinaryObjectWriter
- FMemoryWriter64
- TBufferArchive
- FBufferArchive
- FNetworkFileArchive
- FBufferArchive64
- FOutputDeviceMemory::FOutputDeviceMemoryProxyArchive
- FPreloadableArchive
- FPreloadableFile
- FPreloadableArchiveProxy
- FStorageServerRequest
- FStorageServerChunkBatchRequest
- FStorageServerResponse
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Serialization/Archive.h |
Include | #include "Serialization/Archive.h" |
Syntax
class FArchive : private FArchiveState
Remarks
Base class for archives that can be used for loading, saving, and garbage collecting in a byte order neutral way.
Constructors
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
~FArchive () |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AttachBulkData
(
UE::Serialization::FEditorBulkData* BulkData |
|
![]() ![]() |
void | AttachBulkData
(
UObject* Owner, |
Attaches/ associates the passed in bulk data object with the linker. |
![]() ![]() |
bool | AttachExternalReadDependency
(
FExternalReadCallback& ReadCallback |
Adds external read dependency |
![]() |
FArchive & | ByteOrderSerialize
(
void* V, |
Serialize data of Length bytes, taking into account byte swapping if needed. |
![]() |
void | ByteSwap
(
void* V, |
Used to do byte swapping on small items. This does not happen usually, so we don't want it inline. |
![]() ![]() |
bool | Close () |
Attempts to close and finalize any handles used for backing data storage, returns true if it succeeded. |
![]() ![]() |
void | DetachBulkData
(
FBulkData* BulkData, |
Detaches the passed in bulk data object from the linker. |
![]() ![]() |
void | DetachBulkData
(
UE::Serialization::FEditorBulkData* BulkData, |
|
![]() |
bool | FastPathLoad
(
void* InDest |
|
![]() ![]() |
void | Flush () |
Attempts to finish writing any buffered data to disk/permanent storage. |
![]() ![]() |
void | FlushCache () |
Flushes cache and frees internal data. |
![]() ![]() |
void | 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. | |
![]() ![]() |
const FArchiveState & | ||
![]() |
FArchiveState & | Returns the low level archive state for this archive. | |
![]() ![]() |
FArchive * | 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. | |
![]() ![]() ![]() |
bool | Determine if the given archive is a valid "child" of this archive. | |
![]() |
void | Logf
(
const FmtType& Fmt, |
Logf implementation for convenience. |
![]() ![]() |
void | MarkScriptSerializationEnd
(
const UObject* Obj |
Called when an object stops serializing property data using script serialization. |
![]() ![]() |
void | MarkScriptSerializationStart
(
const UObject* Obj |
Called when an object begins serializing property data using script serialization. |
![]() ![]() ![]() |
void | MarkSearchableName
(
const TObjectPtr< const UObject >& TypeObject, |
Called to register a reference to a specific name value, of type TypeObject (UEnum or UStruct normally). |
![]() ![]() |
void | ||
![]() ![]() |
void | ||
![]() ![]() |
void | PopSerializedProperty
(
FProperty* InProperty, |
Pop a property that was previously being serialized off the property stack |
![]() ![]() |
bool | Precache
(
int64 PrecacheOffset, |
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. |
![]() ![]() |
void | Tells the archive to attempt to preload the specified object so data can be loaded out of it. | |
![]() ![]() |
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 |
![]() ![]() |
void | PushFileRegionType
(
EFileRegionType Type |
Called whilst cooking to provide file region hints to the cooker. |
![]() ![]() |
void | PushSerializedProperty
(
FProperty* InProperty, |
Push a property that is currently being serialized onto the property stack |
![]() ![]() |
void | Seek
(
int64 InPos |
Attempts to set the current offset into backing data storage, this will do nothing if there is no storage. |
![]() ![]() |
void | Serialize
(
void* V, |
|
![]() ![]() |
void | SerializeBits
(
void* V, |
|
![]() ![]() |
void | SerializeBool
(
bool& D |
Serializes a Boolean value from or into an archive. |
![]() ![]() |
bool | SerializeBulkData
(
FBulkData& BulkData, |
Serialize bulk data. |
![]() |
void | SerializeCompressed
(
void* V, |
Serializes and compresses/ uncompresses data. |
![]() |
void | SerializeCompressedNew
(
void* V, |
Serializes and compresses/ uncompresses data with default compressor choices. |
![]() |
void | SerializeCompressedNew
(
void* V, |
Serializes and compresses/ uncompresses data. |
![]() ![]() |
void | SerializeInt
(
uint32& Value, |
|
![]() ![]() |
void | SerializeIntPacked
(
uint32& Value |
Packs int value into bytes of 7 bits with 8th bit for 'more' |
![]() ![]() |
void | SerializeIntPacked64
(
uint64& Value |
Packs int value into bytes of 7 bits with 8th bit for 'more' |
![]() ![]() |
bool | SetCompressionMap
(
TArray< struct FCompressedChunk >* CompressedChunks, |
Sets mapping from offsets/ sizes that are going to be used for seeking and serialization to what is actually stored on disk. |
![]() |
void | Sets a flag indicating that this archive is currently serializing class/struct defaults. | |
![]() |
void | Indicate that this archive is no longer serializing class/struct defaults. | |
![]() ![]() |
void | UsingCustomVersion
(
const FGuid& Guid |
Registers the custom version to the archive. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FArchive & | operator<<
(
FObjectPtr& Value |
Serializes a wrapped object pointer value from or into this archive. |
![]() ![]() |
FArchive & | operator<<
(
UObject*& Value |
Serializes an UObject value from or into this archive. |
![]() ![]() |
FArchive & | operator<<
(
FField*& Value |
Serializes a Field value from or into this archive. |
![]() |
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. |
![]() ![]() |
FArchive & | operator<<
(
FLazyObjectPtr& Value |
Serializes a lazy object pointer value from or into this archive. |
![]() ![]() |
FArchive & | operator<<
(
FSoftObjectPtr& Value |
Serializes asset pointer from or into this archive. |
![]() ![]() |
FArchive & | operator<<
(
FText& Value |
Serializes an FText value from or into an archive. |
![]() ![]() |
FArchive & | operator<<
(
FWeakObjectPtr& Value |
Serializes FWeakObjectPtr value from or into this archive. |
![]() ![]() |
FArchive & | operator<<
(
FName& Value |
Serializes an FName value from or into this archive. |
![]() ![]() |
FArchive & | operator<<
(
FSoftObjectPath& Value |
Serializes soft object paths from or into this archive. |
![]() |
FArchive & |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FScopeAddDebugData | ||
![]() |
FScopeSeekTo | Seeks to and restores the position of an archive. | |
![]() |
FScopeSetDebugSerializationFlags |