Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Serialization
Inheritance Hierarchy
- IPackageWriter
- ICookedPackageWriter
- IPackageStoreWriter
- FZenStoreWriter
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Serialization/PackageWriter.h |
| Include | #include "Serialization/PackageWriter.h" |
Syntax
class ICookedPackageWriter : public IPackageWriter
Remarks
Interface for cooking that writes cooked packages to storage usable by the runtime game.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| IPackageStoreWriter * | Downcast function for ICookedPackageWriters that implement the IPackageStoreWriter inherited interface. | ||
| EPackageWriterResult | |||
| void | Signal the start of a cooking pass | ||
| void | CompleteExportsArchiveForDiff
(
FPackageInfo& Info, |
Append all data to the Exports archive that would normally be done in CommitPackage, used for diffing. | |
| void | Signal the end of a cooking pass. | ||
| FCookCapabilities | Return cook capabilities/settings this PackageWriter has/requires | ||
| FCbObject | GetOplogAttachment
(
FName PackageName, |
Returns an Attachment that was previously commited for the given PackageName. | |
| TMap< FName, TRefCountPtr< FPackageHashes > > & | Cooked package writers asynchronously hash the chunks for each package after CommitPackage. | ||
| bool | GetPreviousCookedBytes
(
const FPackageInfo& Info, |
Load the bytes of the previously-cooked package, used for diffing | |
| FDateTime | Return the timestamp of the previous cook, or FDateTime::MaxValue to indicate previous cook should be assumed newer than any other cook data. | ||
| void | Initialize
(
const FCookInfo& Info |
Delete outdated cooked data, etc. | |
| bool | IsAnotherSaveNeeded
(
FSavePackageResultStruct& PreviousResult, |
Report whether an additional save is needed and set up for it if so. Used for diffing. | |
| TUniquePtr< FAssetRegistryState > | Returns an AssetRegistry describing the previous cook results. | ||
| void | MarkPackagesUpToDate
(
TArrayView< const FName > UpToDatePackages |
Signal the given cooked package(s) have been checked for changes and have not been modified since the last cook. | |
| void | Remove all cooked packages from storage. | ||
| void | RemoveCookedPackages
(
TArrayView< const FName > PackageNamesToRemove |
Remove the given cooked package(s) from storage; they have been modified since the last cook. | |
| bool | TryReadMPCookMessageForPackage
(
FName PackageName, |
Read PackageData written by WriteMPCookMessageForPackage on a CookWorker. | |
| void | UpdateSaveArguments
(
FSavePackageArgs& SaveArgs |
Modify the SaveArgs if required before the first Save. Used for diffing. | |
| TFuture< FCbObject > | WriteMPCookMessageForPackage
(
FName PackageName |
Asynchronously create a CompactBinary Object message that replicates all of the package data from package save that is collected in memory and written at end of cook rather than being written to disk during package save. |
Overridden from IPackageWriter
| Type | Name | Description | |
|---|---|---|---|
| ICookedPackageWriter * | Downcast function for IPackageWriters that implement the ICookedPackageWriters inherited interface. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FBeginCacheForCookedPlatformDataInfo | |||
| FCookCapabilities | |||
| FCookInfo | |||
| FPreviousCookedBytesData |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EPackageHeaderFormat |
Typedefs
| Name | Description |
|---|---|
| FBeginCacheCallback | Helper callback type for Writers that need to send the message on to UCookOnTheFlyServer. |