Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Serialization/Archive.h |
Include |
#include "Serialization/Archive.h" |
struct FArchiveState
Name | Description | ||
---|---|---|---|
|
uint8: 1 |
ArAllowLazyLoading |
Whether to allow lazy loading of bulk/secondary data. |
|
uint8: 1 |
ArContainsCode |
Quickly tell if an archive contains script code. |
|
uint8: 1 |
ArContainsMap |
Used to determine whether FArchive contains a level or world. |
|
const FCustomPr... |
ArCustomPropertyList |
Custom property list attribute. |
|
ArDebugSerializationFlags |
Custom serialization modifier flags can be used for anything |
|
|
ArEngineNetVer |
Holds the engine network protocol version. |
|
|
ArEngineVer |
Holds the engine version. |
|
|
uint8: 1 |
ArForceByteSwapping |
Whether we should forcefully swap bytes. |
|
uint8: 1 |
ArForceUnicode |
Whether this archive wants to always save strings in UTF16 format even if they are ANSI characters |
|
ArGameNetVer |
Holds the game network protocol version. |
|
|
uint8: 1 |
ArIgnoreArchetypeRef |
If true, we will not serialize archetype references for structs and classes. |
|
uint8: 1 |
ArIgnoreClassGeneratedByRef |
If true, we will not serialize ClassGeneratedBy reference in UClass. |
|
uint8: 1 |
ArIgnoreClassRef |
If true, UObject::Serialize will skip serialization of the Class property. |
|
uint8: 1 |
ArIgnoreOuterRef |
If true, we will not serialize the Outer reference in UObject. |
|
uint8: 1 |
ArIsCountingMemory |
Whether this archive is counting memory. |
|
uint8: 1 |
ArIsFilterEditorOnly |
Whether editor only properties are being filtered from the archive (or has been filtered). |
|
uint8: 1 |
ArIsLoading |
Whether this archive is for loading data. |
|
uint8: 1 |
ArIsModifyingWeakAndStrongReferences |
Whether a reference collector is modifying the references and wants both weak and strong ones |
|
uint8: 1 |
ArIsNetArchive |
Whether or not this archive is sending/receiving network data |
|
uint8: 1 |
ArIsObjectReferenceCollector |
Whether this archive only cares about serializing object references. |
|
uint8: 1 |
ArIsPersistent |
Whether this archive saves to persistent storage. |
|
uint8: 1 |
ArIsSaveGame |
Whether this archive is saving/loading game state |
|
uint8: 1 |
ArIsSaving |
Whether this archive is for saving data. |
|
uint8: 1 |
ArIsTextFormat |
Whether this archive serializes to a text format. |
|
uint8: 1 |
ArIsTransacting |
Whether archive is transacting, which is used to keep track of changes to objects for things like the editor undo system. |
|
ArLicenseeUEVer |
Holds the archive version for licensees. |
|
|
ArMaxSerializeSize |
Max size of data that this archive is allowed to serialize. |
|
|
uint8: 1 |
ArNoDelta |
If true, do not perform delta serialization of properties. |
|
uint8: 1 |
ArNoIntraPropertyDelta |
If true, do not perform delta serialization within properties (e.g. TMaps and TSets). |
|
ArPortFlags |
Modifier flags that be used when serializing UProperties |
|
|
uint8: 1 |
ArRequiresLocalizationGather |
Used to determine whether FArchive contains data required to be gathered for localization. |
|
ArSerializingDefaults |
Whether we are currently serializing defaults. > 0 means yes, <= 0 means no. |
|
|
uint8: 1 |
ArShouldSkipBulkData |
Whether bulk data serialization should be skipped or not. |
|
ArUEVer |
These will be private in FArchive. |
|
|
uint8: 1 |
ArUseCustomPropertyList |
Set TRUE to use the custom property list attribute for serialization. |
|
uint8: 1 |
ArUseUnversionedPropertySerialization |
Whether tagged property serialization is replaced by faster unversioned serialization. |
|
uint8: 1 |
ArWantBinaryPropertySerialization |
Whether this archive wants properties to be serialized in binary form instead of tagged. |
|
bCustomVersionsAreReset |
Indicates if the custom versions container is in a 'reset' state. |
|
|
const ITargetPl... |
CookingTargetPlatform |
These will be private in FArchive. |
|
CustomVersionContainer |
All the custom versions stored in the archive. |
|
|
FString * |
LocalizationNamespacePtr |
The localization namespace that this archive should use when serializing text properties. |
|
SerializedProperty |
Holds the pointer to the property that is currently being serialized |
|
|
SerializedPropertyChain |
Holds the chain of properties that are currently being serialized |
No constructors are accessible with public or protected access.
No destructors are accessible with public or protected access.
Name | Description | ||
---|---|---|---|
|
AtEnd() |
Returns true if the current location within the backing data storage is at the end, always returns false if there is no storage. |
|
|
ClearError() |
Sets ArIsError to false, this does not clear any CriticalErrors |
|
|
ContainsCode() |
Returns true if this archive contains native or generated code. |
|
|
ContainsMap() |
Returns true if this archive contains a ULevel or UWorld object. |
|
|
const ITarge... |
CookingTarget() |
Returns the cooking target platform. |
|
CopyTrivialFArchiveStatusMembers ( |
These will be private in FArchive. |
|
|
CountBytes |
Called to get the computed size from a size-detecting archive after it has finished serializing. |
|
|
CustomVer ( |
Queries a custom version from the archive. |
|
|
DoDelta() |
Returns true if this archive should handle delta serialization for properties. |
|
|
DoIntraPropertyDelta() |
Returns true if this archive should perform delta serialization within properties (e.g. TMaps and TSets). |
|
|
EngineNetVer() |
Returns the engine-global network protocol version for this archive. |
|
|
FEngineVersi... |
EngineVer() |
Returns the compiled engine version used for this archive. |
|
ForceByteSwapping() |
Returns true if this archive should always swap bytes, ignoring endian rules. |
|
|
GameNetVer() |
Returns the game-specific network protocol version for this archive. |
|
|
UObject *... |
GetArchetypeFromLoader ( |
Called to retrieve the archetype from the event driven loader. |
|
GetArchiveName() |
Returns the name of the Archive. |
|
|
GetBaseLocalizationNamespace() |
See GetLocalizationNamespace |
|
|
const FCusto... |
GetCustomVersions() |
Gets the custom version numbers for this archive. |
|
GetDebugSerializationFlags() |
Returns the editor-only debug serialization flags. |
|
|
GetError() |
||
|
FArchiveStat... |
GetInnermostState() |
Returns lowest level archive state, proxy archives will override this. |
|
FLinker *... |
GetLinker() |
If this archive is a FLinkerLoad or FLinkerSave, returns a pointer to the ULinker portion. |
|
GetLocalizationNamespace() |
Get the localization namespace that this archive should use when serializing text properties. |
|
|
GetMaxSerializeSize() |
Returns the maximum size of data that this archive is allowed to serialize. |
|
|
GetPortFlags() |
Returns this archive's property serialization modifier flags. |
|
|
FUObjectSeri... |
GetSerializeContext() |
Gets the current UObject serialization context for this archive. |
|
FProperty &#... |
GetSerializedProperty() |
Gets the property that is currently being serialized |
|
const FArchi... |
GetSerializedPropertyChain() |
Get the raw serialized property chain for this archive @note Accessing this directly can avoid an array allocation depending on your use-case |
|
GetSerializedPropertyChain |
Gets the chain of properties that are currently being serialized @note This populates the array in stack order, so the 0th entry in the array is the top of the stack of properties |
|
|
HasAllPortFlags ( |
Checks to see if all of the passed in property serialization modifier flags are set. |
|
|
HasAnyPortFlags ( |
Checks to see if any of the passed in property serialization modifier flags are set. |
|
|
IsAllowingLazyLoading() |
Returns true if this archive sould allow lazy loading of bulk / secondary data. |
|
|
IsByteSwapping() |
Returns true if data larger than 1 byte should be swapped to deal with endian mismatches. |
|
|
IsCooking() |
Checks whether the archive is used for cooking. |
|
|
IsCountingMemory() |
Returns true if this archive is counting memory, normally CountBytes is called to get the size. |
|
|
IsCriticalError() |
Returns true if this archive contains critical errors that cannot be recovered from. |
|
|
IsEditorOnlyPropertyOnTheStack() |
Returns true if the stack of currently serialized properties contains an editor-only property |
|
|
IsError() |
Returns true if this archive contains errors, which means that further serialization is generally not safe. |
|
|
IsFilterEditorOnly() |
Indicates whether this archive is filtering editor-only on save or contains data that had editor-only content stripped. |
|
|
IsForcingUnicode() |
Returns true if this archive wants to always save strings in UTF16 format even if they are ANSI characters. |
|
|
IsIgnoringArchetypeRef() |
Returns true if this archive should ignore archetype references for structs and classes. |
|
|
IsIgnoringClassGeneratedByRef() |
Returns true if this archive should ignore the ClassGeneratedBy reference in UClass. |
|
|
IsIgnoringClassRef() |
Returns true if this archive should ignore the Class reference in UObject. |
|
|
IsIgnoringOuterRef() |
Returns true if this archive should ignore the Outer reference in UObject. |
|
|
IsLoading() |
Returns true if this archive is for loading data. |
|
|
IsModifyingWeakAndStrongReferences() |
Returns true if this archive should modify/search weak object references as well as strong ones. |
|
|
IsNetArchive() |
Whether or not this archive is serializing data being sent/received by the netcode |
|
|
IsObjectReferenceCollector() |
Returns true if this archive is only looking for UObject references. |
|
|
IsPersistent() |
Returns true if this archive is saving or loading data destined for persistent storage and should skip transient data. |
|
|
IsSaveGame() |
Indicates whether this archive is saving or loading game state |
|
|
IsSaving() |
Returns true if this archive is for saving data, this can also be a pre-save preparation archive. |
|
|
IsSerializingDefaults() |
Returns true if this archive is currently serializing class/struct default values. |
|
|
IsTextFormat() |
Returns true if this archive serializes to a structured text format. |
|
|
IsTransacting() |
Returns true if this archive is transacting, which is used to keep track of changes to objects for things like the editor undo system. |
|
|
LicenseeUEVer() |
Returns the licensee-specific version used for this archive, will be 0 by default. |
|
|
LinkProxy ( |
||
|
RequiresLocalizationGather() |
Returns true if this archive contains data required to be gathered for localization. |
|
|
Reset() |
Resets all of the base archive members. |
|
|
ResetCustomVersions() |
Resets the custom version numbers for this archive. |
|
|
SetArchiveState ( |
Modifies current archive state, can be used to override flags. |
|
|
SetBaseLocalizationNamespace ( |
See SetLocalizationNamespace |
|
|
SetByteSwapping ( |
Toggle byte order swapping. |
|
|
SetCookingTarget ( |
Sets the cooking target platform. |
|
|
SetCriticalError() |
Sets the archiver IsCriticalError and IsError to true. |
|
|
SetCustomVersion |
Sets a specific custom version |
|
|
SetCustomVersions ( |
Sets the custom version numbers for this archive. |
|
|
SetDebugSerializationFlags ( |
Sets the archives custom serialization modifier flags (nothing to do with PortFlags or Custom versions) |
|
|
SetEngineNetVer ( |
Sets the archive engine network version. |
|
|
SetEngineVer ( |
Sets the archive engine version. |
|
|
SetError() |
Sets ArIsError to true. Also sets error in the proxy archiver if one is wrapping this. |
|
|
SetFilterEditorOnly ( |
Sets a flag indicating that this archive needs to filter editor-only content. |
|
|
SetForceUnicode ( |
Sets whether this archive wants to force saving as Unicode. |
|
|
SetGameNetVer ( |
Sets the archive game network version. |
|
|
SetIsLoading ( |
Sets whether this archive is for loading data. |
|
|
SetIsPersistent ( |
Sets whether this archive is to persistent storage. |
|
|
SetIsSaving ( |
Sets whether this archive is for saving data. |
|
|
SetIsTextFormat ( |
Sets whether this archive is in text format. |
|
|
SetIsTransacting ( |
Sets whether this archive is for transacting. |
|
|
SetLicenseeUEVer ( |
Sets the archive licensee version number. |
|
|
SetLocalizationNamespace ( |
Set the localization namespace that this archive should use when serializing text properties. |
|
|
SetPortFlags ( |
Sets the archive's property serialization modifier flags |
|
|
SetSerializeContext ( |
Sets the current UObject serialization context for this archive. |
|
|
SetSerializedProperty ( |
Overrides the property that is currently being serialized @note You likely want to call PushSerializedProperty/PopSerializedProperty instead |
|
|
SetSerializedPropertyChain ( |
Set the raw serialized property chain for this archive, optionally overriding the serialized property too (or null to use the head of the property chain) |
|
|
SetShouldSkipCompilingAssets ( |
Set whether or not it is allowed to skip serialization on assets still being compiled to avoid waiting unless strictly necessary. |
|
|
SetUEVer ( |
Sets the archive version number. |
|
|
SetUseUnversionedPropertySerialization ( |
Sets whether tagged property serialization should be replaced by faster unversioned serialization. |
|
|
SetWantBinaryPropertySerialization ( |
Sets whether this archive wants binary property serialization. |
|
|
ShouldSkipBulkData() |
Returns true if this archive should ignore bulk data. |
|
|
ShouldSkipCompilingAssets() |
Returns true if it is allowed to skip serialization on assets still being compiled to avoid waiting unless strictly necessary. |
|
|
ShouldSkipProperty ( |
Checks whether the archive wants to skip the property independent of the other flags |
|
|
Tell() |
Returns the current location within the backing data storage, which can possibly be passed to Seek later to restore a read/write location. |
|
|
ThisContainsCode() |
Sets a flag indicating that this archive contains native or generated code. |
|
|
ThisContainsMap() |
Sets a flag indicating that this archive contains a ULevel or UWorld object. |
|
|
ThisRequiresLocalizationGather() |
Sets a flag indicating that this archive contains data required to be gathered for localization. |
|
|
TotalSize() |
Returns total size of the backing data storage. |
|
|
FPackageFile... |
UEVer() |
Returns the global engine serialization version used for this archive. |
|
UnlinkProxy ( |
||
|
UseToResolveEnumerators() |
Checks whether the archive is used to resolve out-of-date enum indexes If function returns true, the archive should be called only for objects containing user defined enum |
|
|
UseUnversionedPropertySerialization() |
Returns true if tagged property serialization should be replaced by faster unversioned serialization. |
|
|
WantBinaryPropertySerialization() |
Returns true if this archive wants properties to be serialized in binary form instead of safer but slower tagged form. |
Name |
Description |
|
---|---|---|
|
FFastPathLoadBuffer |
These are used for fastpath inline serializers |
Name | Description | ||
---|---|---|---|
|
LicenseeUE4Ver() |
Use LicenseeUEVer instead |
|
|
SetLicenseeUE4Ver ( |
Use SetLicenseeUEVer instead |
|
|
SetUE4Ver ( |
Use SetUEVer instead which takes the version as a FPackageFileVersion. See the documentation for further details |
|
|
UE4Ver() |
Use UEVer instead which returns the version as a FPackageFileVersion. See the documentation for further details |