Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h |
Include |
#include "GenericPlatform/GenericPlatformFile.h" |
virtual IMappedFileHandle * OpenMapped
(
const TCHAR * Filename
)
Open a file for async reading. This call does hit the disk; it is synchronous open.
Close the file by delete'ing the handle. A non-null return value does mean the file exists. Null can be returned for many reasons even if the file exists. Perhaps this platform does not support mapped files, or this file is compressed in a pak file. Generally you attempt to open mapped, and if that fails, then use other file operations instead.
Parameter |
Description |
---|---|
Filename |
file to be mapped. This doesn't actually map anything, just opens the file. |