FAsyncReadFileHandleNull

An [IAsyncReadFileHandle](API\Runtime\Core\Async\IAsyncReadFileHandle) that returns only failed results, used when a function has failed but needs to return a non-null [IAsyncReadFileHandle](API\Runtime\Core\Async\IAsyncReadFileHandle).

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

IAsyncReadFileHandle

FAsyncReadFileHandleNull

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Async/AsyncFileHandleNull.h

Include

#include "Async/AsyncFileHandleNull.h"

Syntax

class FAsyncReadFileHandleNull : public IAsyncReadFileHandle

Remarks

An IAsyncReadFileHandle that returns only failed results, used when a function has failed but needs to return a non-null IAsyncReadFileHandle.

Overridden from IAsyncReadFileHandle

Name Description

Public function Virtual

IAsyncReadRe...

 

ReadRequest

(
    int64 Offset,
    int64 BytesToRead,
    EAsyncIOPriorityAndFlags PriorityAn...,
    FAsyncFileCallBack* CompleteCa...,
    uint8* UserSuppliedMemory
)

Submit an async request and/or wait for an async request

Public function Virtual

IAsyncReadRe...

 

SizeRequest

(
    FAsyncFileCallBack* CompleteCa...
)

Request the size of the file. This is also essentially the existence check.

Public function Virtual

bool

 

UsesCache()

Return true if this file is backed by a cache, if not, then precache requests are ignored.