FPlatformFileOpenLog::OpenMapped

Open a file for async reading. This call does hit the disk; it is synchronous open.

Windows
MacOS
Linux

Override Hierarchy

IPlatformFile::OpenMapped()

FPlatformFileOpenLog::OpenMapped()

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/IPlatformFileOpenLogWrapper.h

Include

#include "HAL/IPlatformFileOpenLogWrapper.h"

Syntax

virtual IMappedFileHandle * OpenMapped
(
    const TCHAR * Filename
)

Remarks

Open a file for async reading. This call does hit the disk; it is synchronous open.

Returns

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.

Parameters

Parameter

Description

Filename

file to be mapped. This doesn't actually map anything, just opens the file.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss