|
| | FChunkDataSerialization (IFileSystem *InFileSystem, EFeatureLevel InFeatureLevel) |
| |
| | ~FChunkDataSerialization () |
| |
| virtual bool | ValidateAndRead (FArchive &InArchive, FMutableMemoryView InDestinationBuffer, FChunkHeader &OutHeader, FUniqueBuffer &OutCompressedBuffer) const override |
| |
| virtual bool | DecompressValidatedRead (const FChunkHeader &InHeader, FMutableMemoryView InDestinationBuffer, const FUniqueBuffer &InCompressedBuffer) const override |
| |
| virtual IChunkDataAccess * | LoadFromFile (const FString &Filename, EChunkLoadResult &OutLoadResult) const override |
| |
| virtual IChunkDataAccess * | LoadFromMemory (const TArray< uint8 > &Memory, EChunkLoadResult &OutLoadResult) const override |
| |
| virtual IChunkDataAccess * | LoadFromArchive (FArchive &Archive, EChunkLoadResult &OutLoadResult) const override |
| |
| virtual EChunkSaveResult | SaveToFile (const FString &Filename, const IChunkDataAccess *ChunkDataAccess) const override |
| |
| virtual EChunkSaveResult | SaveToMemory (TArray< uint8 > &Memory, const IChunkDataAccess *ChunkDataAccess) const override |
| |
| virtual EChunkSaveResult | SaveToArchive (FArchive &Archive, const IChunkDataAccess *ChunkDataAccess) const override |
| |
| virtual EChunkSaveResult | SaveToArchiveUncompressed (FArchive &Archive, const IChunkDataAccess *ChunkDataAccess) const override |
| |
| virtual void | InjectShaToChunkData (TArray< uint8 > &Memory, const FSHAHash &ShaHashData) const override |
| |
| virtual | ~IChunkDataSerialization () |
| |
◆ FChunkDataSerialization()
| BuildPatchServices::FChunkDataSerialization::FChunkDataSerialization |
( |
IFileSystem * |
InFileSystem, |
|
|
EFeatureLevel |
InFeatureLevel |
|
) |
| |
|
inline |
◆ ~FChunkDataSerialization()
| BuildPatchServices::FChunkDataSerialization::~FChunkDataSerialization |
( |
| ) |
|
|
inline |
◆ CheckChunkHash()
◆ DecompressValidatedRead()
◆ InjectShaToChunkData()
Injects an SHA hash for the data into the structure of a serialized chunk.
- Parameters
-
| Memory | The memory array containing the serialized chunk. |
| ShaHashData | The SHA hash to inject. |
Implements BuildPatchServices::IChunkDataSerialization.
◆ LoadFromArchive()
Loads a chunk from an archive.
- Parameters
-
| Archive | The archive. |
| OutLoadResult | Receives the result, indicating the error reason if return value is nullptr. |
- Returns
- ptr to an allocated IChunkDataAccess holding the data, nullptr if failed to load.
Implements BuildPatchServices::IChunkDataSerialization.
◆ LoadFromFile()
| virtual IChunkDataAccess * BuildPatchServices::FChunkDataSerialization::LoadFromFile |
( |
const FString & |
Filename, |
|
|
EChunkLoadResult & |
OutLoadResult |
|
) |
| const |
|
inlineoverridevirtual |
Loads a chunk from a file on disk or network.
- Parameters
-
| Filename | The full file path to the file. |
| OutLoadResult | Receives the result, indicating the error reason if return value is nullptr. |
- Returns
- ptr to an allocated IChunkDataAccess holding the data, nullptr if failed to load.
Implements BuildPatchServices::IChunkDataSerialization.
◆ LoadFromMemory()
Loads a chunk from memory.
- Parameters
-
| Memory | The memory array. |
| OutLoadResult | Receives the result, indicating the error reason if return value is nullptr. |
- Returns
- ptr to an allocated IChunkDataAccess holding the data, nullptr if failed to load.
Implements BuildPatchServices::IChunkDataSerialization.
◆ SaveToArchive()
Saves a chunk to an archive.
- Parameters
-
| Archive | The archive. |
| ChunkDataAccess | Ptr to the chunk data to save. |
- Returns
- the result, EChunkSaveResult::Success if successful.
Implements BuildPatchServices::IChunkDataSerialization.
◆ SaveToArchiveUncompressed()
| virtual EChunkSaveResult BuildPatchServices::FChunkDataSerialization::SaveToArchiveUncompressed |
( |
FArchive & |
Archive, |
|
|
const IChunkDataAccess * |
ChunkDataAccess |
|
) |
| const |
|
inlineoverridevirtual |
◆ SaveToFile()
| virtual EChunkSaveResult BuildPatchServices::FChunkDataSerialization::SaveToFile |
( |
const FString & |
Filename, |
|
|
const IChunkDataAccess * |
ChunkDataAccess |
|
) |
| const |
|
inlineoverridevirtual |
Saves a chunk to a file on disk or network.
- Parameters
-
| Filename | The full file path to the file. |
| ChunkDataAccess | Ptr to the chunk data to save. |
- Returns
- the result, EChunkSaveResult::Success if successful.
Implements BuildPatchServices::IChunkDataSerialization.
◆ SaveToMemory()
Saves a chunk to memory.
- Parameters
-
| Memory | The memory array. |
| ChunkDataAccess | Ptr to the chunk data to save. |
- Returns
- the result, EChunkSaveResult::Success if successful.
Implements BuildPatchServices::IChunkDataSerialization.
◆ ValidateAndRead()
The documentation for this class was generated from the following file:
- Engine/Source/Runtime/Online/BuildPatchServices/Private/Data/ChunkData.cpp