UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSavePackageOutputFile Struct Reference

#include <SavePackageUtilities.h>

Public Member Functions

 FSavePackageOutputFile (const FString &InTargetPath, FLargeMemoryPtr &&MemoryBuffer, const TArray< FFileRegion > &InFileRegions, int64 InDataSize)
 
 FSavePackageOutputFile (const FString &InTargetPath, const FString &InTempFilePath, int64 InDataSize)
 

Public Attributes

FString TargetPath
 
FString TempFilePath
 
FLargeMemoryPtr FileMemoryBuffer
 
TArray< FFileRegionFileRegions
 
int64 DataSize
 

Detailed Description

Represents an output file from the package when saving

Constructor & Destructor Documentation

◆ FSavePackageOutputFile() [1/2]

FSavePackageOutputFile::FSavePackageOutputFile ( const FString &  InTargetPath,
FLargeMemoryPtr &&  MemoryBuffer,
const TArray< FFileRegion > &  InFileRegions,
int64  InDataSize 
)
inline

Constructor used for async saving

◆ FSavePackageOutputFile() [2/2]

FSavePackageOutputFile::FSavePackageOutputFile ( const FString &  InTargetPath,
const FString &  InTempFilePath,
int64  InDataSize 
)
inline

Constructor used for saving first to a temp file which can be later moved to the target directory

Member Data Documentation

◆ DataSize

int64 FSavePackageOutputFile::DataSize

The size of the file in bytes

◆ FileMemoryBuffer

FLargeMemoryPtr FSavePackageOutputFile::FileMemoryBuffer

The entire file stored as a memory buffer for the async saving path

◆ FileRegions

TArray<FFileRegion> FSavePackageOutputFile::FileRegions

An array of file regions in FileMemoryBuffer generated during cooking

◆ TargetPath

FString FSavePackageOutputFile::TargetPath

The final target location of the file once all saving operations are completed

◆ TempFilePath

FString FSavePackageOutputFile::TempFilePath

The temp location (if any) that the file is stored at, pending a move to the TargetPath


The documentation for this struct was generated from the following file: