Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Virtualization > API/Runtime/Core/Virtualization/IVirtualizationSystem > API/Runtime/Core/Virtualization/IVirtualizationSystem/TryRehydratePackages
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Virtualization/VirtualizationSystem.h |
| Include | #include "Virtualization/VirtualizationSystem.h" |
ERehydrationResult TryRehydratePackages
(
TConstArrayView< FString > PackagePaths,
uint64 PaddingAlignment,
TArray < FText > & OutErrors,
TArray < FSharedBuffer > & OutPackages,
TArray < FRehydrationInfo > * OutInfo
)
Remarks
Rehydrates a number of packages into memory buffers. Note that if a package does not require rehydration we will still return the package in a memory buffer but it will be the same as the package on disk. ERehydrationResult::Success if the rehydration suceeeds and OutPackages/OutInfocan be trued, otherwise it will return an error value.
Parameters
| Name | Description |
|---|---|
| PackagePaths | An array containing the absolute file paths of packages. |
| PaddingAlignment | Byte alignment to pad each package buffer too, a value of 0 will result in the buffers being the same size as the packages |
| OutErrors | Any errors encountered while rehydration will be added here |
| OutPackages | The rehydrated packages as memory buffers. Each entry should match the corresponding entry in PackagePaths. This array is only guaranteed to be correct if the method returns ERehydrationResult::Success. |
| OutInfo | Information about the rehydration process, each entry should match the corresponding entry in PackagePaths assuming that the method returns ERehydrationResult::Success. This parameter is optional, if the information is not required then pass in nullptr to skip. |