UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FBypassPakAsyncReadFileHandle Class Referencefinal
+ Inheritance diagram for FBypassPakAsyncReadFileHandle:

Public Member Functions

 FBypassPakAsyncReadFileHandle (const FPakEntry *InFileEntry, const TRefCountPtr< FPakFile > &InPakFile, const TCHAR *Filename)
 
 ~FBypassPakAsyncReadFileHandle ()
 
virtual IAsyncReadRequestSizeRequest (FAsyncFileCallBack *CompleteCallback=nullptr) override
 
virtual IAsyncReadRequestReadRequest (int64 Offset, int64 BytesToRead, EAsyncIOPriorityAndFlags PriorityAndFlags=AIOP_Normal, FAsyncFileCallBack *CompleteCallback=nullptr, uint8 *UserSuppliedMemory=nullptr) override
 
virtual bool UsesCache () override
 
- Public Member Functions inherited from IAsyncReadFileHandle
 IAsyncReadFileHandle ()
 
virtual ~IAsyncReadFileHandle ()
 
virtual void ShrinkHandleBuffers ()
 
 IAsyncReadFileHandle (const IAsyncReadFileHandle &)=delete
 
IAsyncReadFileHandleoperator= (const IAsyncReadFileHandle &)=delete
 

Constructor & Destructor Documentation

◆ FBypassPakAsyncReadFileHandle()

FBypassPakAsyncReadFileHandle::FBypassPakAsyncReadFileHandle ( const FPakEntry InFileEntry,
const TRefCountPtr< FPakFile > &  InPakFile,
const TCHAR Filename 
)
inline

◆ ~FBypassPakAsyncReadFileHandle()

FBypassPakAsyncReadFileHandle::~FBypassPakAsyncReadFileHandle ( )
inline

Member Function Documentation

◆ ReadRequest()

virtual IAsyncReadRequest * FBypassPakAsyncReadFileHandle::ReadRequest ( int64  Offset,
int64  BytesToRead,
EAsyncIOPriorityAndFlags  PriorityAndFlags = AIOP_Normal,
FAsyncFileCallBack CompleteCallback = nullptr,
uint8 UserSuppliedMemory = nullptr 
)
inlineoverridevirtual

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

Parameters
OffsetOffset into the file to start reading.
BytesToReadnumber of bytes to read. If this request is AIOP_Preache, the size can be anything, even MAX_int64, otherwise the size and offset must be fully contained in the file.
PriorityAndFlagsPriority and flags of the request. If this includes AIOP_FLAG_PRECACHE, then memory will never be returned. The request should always be canceled and waited for, even for a precache request.
CompleteCallbackCalled from an arbitrary thread when the request is complete. Can be nullptr, if non-null, must remain valid until it is called. It will always be called.
Returns
A request for the read. This is owned by the caller and must be deleted by the caller.

Implements IAsyncReadFileHandle.

◆ SizeRequest()

virtual IAsyncReadRequest * FBypassPakAsyncReadFileHandle::SizeRequest ( FAsyncFileCallBack CompleteCallback = nullptr)
inlineoverridevirtual

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

Parameters
CompleteCallbackCalled from an arbitrary thread when the request is complete. Can be nullptr, if non-null, must remain valid until it is called. It will always be called.
Returns
A request for the size. This is owned by the caller and must be deleted by the caller.

Implements IAsyncReadFileHandle.

◆ UsesCache()

virtual bool FBypassPakAsyncReadFileHandle::UsesCache ( )
inlineoverridevirtual

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

Reimplemented from IAsyncReadFileHandle.


The documentation for this class was generated from the following file: