![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ArchiveProxy.h>
Inheritance diagram for FArchiveProxy:Protected Attributes | |
| FArchive & | InnerArchive |
Base class for archive proxies.
Archive proxies are archive types that modify the behavior of another archive type.
| FArchiveProxy::FArchiveProxy | ( | FArchive & | InInnerArchive | ) |
Creates and initializes a new instance of the archive proxy.
| InInnerArchive | The inner archive to proxy. |
| FArchiveProxy::~FArchiveProxy | ( | ) |
|
delete |
|
delete |
Returns true if the current location within the backing data storage is at the end, always returns false if there is no storage.
Reimplemented from FArchive.
|
inlineoverridevirtual |
Adds external read dependency
Reimplemented from FArchive.
Attempts to close and finalize any handles used for backing data storage, returns true if it succeeded.
Reimplemented from FArchive.
Called to get the computed size from a size-detecting archive after it has finished serializing.
Reimplemented from FArchive.
|
inlineoverridevirtual |
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 |
Reimplemented from FArchive.
Attempts to finish writing any buffered data to disk/permanent storage.
Reimplemented from FArchive.
Flushes cache and frees internal data.
Reimplemented from FArchive.
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.
Reimplemented from FArchive.
|
inlineoverridevirtual |
Called to retrieve the archetype from the event driven loader. If this returns null, then call GetArchetype yourself.
Reimplemented from FArchive.
|
overridevirtual |
Returns the name of the Archive. Useful for getting the name of the package a struct or object is in when a loading error occurs.
This is overridden for the specific Archive Types
Reimplemented from FArchive.
Reimplemented in FMaterialResourceProxyReader.
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
Reimplemented from FArchive.
|
inlineoverridevirtual |
Gets the custom version numbers for this archive. These are used to check for system or game-specific version numbers.
Reimplemented from FArchive.
|
inlineoverridevirtual |
Returns lowest level archive state, proxy archives will override this.
Reimplemented from FArchive.
If this archive is a FLinkerLoad or FLinkerSave, returns a pointer to the ULinker portion.
Reimplemented from FArchive.
|
inlineoverridevirtual |
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 |
Reimplemented from FArchive.
Called when an object stops serializing property data using script serialization.
Reimplemented from FArchive.
|
inlineoverridevirtual |
Called when an object begins serializing property data using script serialization.
Reimplemented from FArchive.
|
inlineoverridevirtual |
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. |
Reimplemented from FArchive.
Reimplemented in FPropertyProxyArchive.
|
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.
| Value | The value to serialize. |
Reimplemented from FArchive.
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. |
Reimplemented from FArchive.
Reimplemented in FNameAsStringProxyArchive, FMaterialResourceProxyReader, FNameAsStringIndexProxyArchive, UE::AssetRegistry::FNameMapAwareArchive, and FAssetRegistryReader.
|
inlineoverridevirtual |
Serializes a wrapped object pointer value from or into this archive.
Most of the time, FObjectPtrs are serialized as UObject*, but some archives need to override this.
| Value | The value to serialize. |
Reimplemented from FArchive.
Reimplemented in FObjectAndNameAsStringProxyArchive, and FObjectAsTraceIdProxyArchive.
|
inlineoverridevirtual |
Serializes soft object paths from or into this archive.
| Value | Soft object path to serialize. |
Reimplemented from FArchive.
Reimplemented in FObjectAndNameAsStringProxyArchive, and FObjectAsTraceIdProxyArchive.
|
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.
| Value | The asset pointer to serialize. |
Reimplemented from FArchive.
Reimplemented in FObjectAndNameAsStringProxyArchive, and FObjectAsTraceIdProxyArchive.
Serializes an FText value from or into an archive.
| Ar | The archive to serialize from or to. |
| Value | The value to serialize. |
Reimplemented from FArchive.
Reimplemented in UE::AssetDataGather::Private::FChecksumArchiveBase.
|
inlineoverridevirtual |
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. |
Reimplemented from FArchive.
Reimplemented in FObjectAndNameAsStringProxyArchive, and FObjectAsTraceIdProxyArchive.
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. |
Reimplemented from FArchive.
Reimplemented in FObjectAndNameAsStringProxyArchive, and FObjectAsTraceIdProxyArchive.
|
delete |
|
delete |
|
inlineoverridevirtual |
Pops editor-only marker from the stack of currently serialized properties
Reimplemented from FArchive.
|
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.
| PrecacheOffset | Offset at which to begin precaching. |
| PrecacheSize | Number of bytes to precache |
Reimplemented from FArchive.
Tells the archive to attempt to preload the specified object so data can be loaded out of it.
Reimplemented from FArchive.
|
inlineoverridevirtual |
Pushes editor-only marker to the stack of currently serialized properties
Reimplemented from FArchive.
Resets the custom version numbers for this archive.
Reimplemented from FArchive.
Attempts to set the current offset into backing data storage, this will do nothing if there is no storage.
Reimplemented from FArchive.
Reimplemented in FMaterialResourceProxyReader, and FLinkerExportArchive.
Reimplemented from FArchive.
Reimplemented in FArchiveStackTraceWriter, UE::AssetDataGather::Private::FChecksumArchiveWriter, and UE::AssetDataGather::Private::FChecksumArchiveReader.
Reimplemented from FArchive.
Reimplemented in UE::AssetDataGather::Private::FChecksumArchiveBase.
|
inlineoverridevirtual |
Serialize bulk data.
| BulkData | Bulk data object to serialize |
| Params | Serialization parameters |
Reimplemented from FArchive.
Reimplemented from FArchive.
Reimplemented in UE::AssetDataGather::Private::FChecksumArchiveBase.
Packs int value into bytes of 7 bits with 8th bit for 'more'
Reimplemented from FArchive.
Reimplemented in UE::AssetDataGather::Private::FChecksumArchiveBase.
|
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.
| CompressedChunks | Pointer to array containing information about [un]compressed chunks |
| CompressionFlags | Flags determining compression format associated with mapping |
Reimplemented from FArchive.
|
inlineoverridevirtual |
Sets the custom version numbers for this archive.
| CustomVersionContainer | - The container of custom versions to copy into the archive. |
Reimplemented from FArchive.
|
inlineoverridevirtual |
Sets the archives custom serialization modifier flags (nothing to do with PortFlags or Custom versions)
| InCustomFlags | the new flags to use for custom serialization |
Reimplemented from FArchive.
Sets a flag indicating that this archive needs to filter editor-only content.
| InFilterEditorOnly | Whether to filter editor-only content. |
Reimplemented from FArchive.
Overrides the property that is currently being serialized
| InProperty | Pointer to the property that is currently being serialized |
Reimplemented from FArchive.
|
inlineoverridevirtual |
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)
Reimplemented from FArchive.
|
inlineoverridevirtual |
Checks whether the archive wants to skip the property independent of the other flags
Reimplemented from FArchive.
Returns the current location within the backing data storage, which can possibly be passed to Seek later to restore a read/write location. If this returns -1, there is no backing data storage and Seek will not function.
Reimplemented from FArchive.
Reimplemented in UE::AssetDataGather::Private::FChecksumArchiveWriter, UE::AssetDataGather::Private::FChecksumArchiveReader, FLinkerExportArchive, and FMaterialResourceProxyReader.
Returns total size of the backing data storage.
Reimplemented from FArchive.
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
Reimplemented from FArchive.
|
protected |
Holds the archive that this archive is a proxy to.