IPlatformFile::OpenAsyncRead

Open a file for async reading. This call does not hit the disk or block.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h

Include

#include "GenericPlatform/GenericPlatformFile.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformFile.cpp

Syntax

virtual IAsyncReadFileHandle * OpenAsyncRead
(
    const TCHAR * Filename
)

Remarks

Open a file for async reading. This call does not hit the disk or block.

Returns

Close the file by delete'ing the handle. A non-null return value does not mean the file exists, since that may not be determined yet.

Parameters

Parameter

Description

Filename

file to be opened