Choose your operating system:
Windows
macOS
Linux
| FArchiveState
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/PreloadableFile.h |
Include |
#include "Misc/PreloadableFile.h" |
class FPreloadableFile : public FPreloadableArchive
An FPreloadableArchive that is customized for reading files from IFileManager.
This class also supports registration of instances of this class by filename, which other systems in the engine can use to request an FArchive for the preload file, if it exists, replacing a call they would otherwise make to IFileManager::Get().CreateFileReader.
As with the base class, the preloading can work in either PreloadBytes or PreloadHandle mode.
Activate PreloadBytes mode by passing Flags::PreloadBytes to InitializeAsync. Activate PreloadHandle mode by passing Flags::PreloadHandle to InitializeAsync, optionally or'd with Flags::Prime.
Name | Description | |
---|---|---|
|
FPreloadableFile ( |
Name | Description | ||
---|---|---|---|
|
InitializeAsync |
Initialize the FPreloadableFile asynchronously, performing FileOpen operations on another thread. |
|
|
TryRegister ( |
Registration. |
|
|
FArchive ... |
TryTakeArchive ( |
Look up an FPreloadableFile instance registered for the given FileName, and return an FArchive from it. |
|
UnRegister ( |
Remove the FPreloadableFile instance if it is registered for its FileName. |
Name |
Description |
---|---|
RegisteredFiles |
Map used for TryTakeArchive registration. |