|
| | FPakAsyncReadFileHandle (const FPakEntry *InFileEntry, const TRefCountPtr< FPakFile > &InPakFile, const TCHAR *Filename) |
| |
| | ~FPakAsyncReadFileHandle () |
| |
| virtual IAsyncReadRequest * | SizeRequest (FAsyncFileCallBack *CompleteCallback=nullptr) override |
| |
| virtual IAsyncReadRequest * | ReadRequest (int64 Offset, int64 BytesToRead, EAsyncIOPriorityAndFlags PriorityAndFlags=AIOP_Normal, FAsyncFileCallBack *CompleteCallback=nullptr, uint8 *UserSuppliedMemory=nullptr) override |
| |
| void | StartBlock (int32 BlockIndex, EAsyncIOPriorityAndFlags PriorityAndFlags) |
| |
| void | RawReadCallback (bool bWasCancelled, IAsyncReadRequest *InRequest) |
| |
| void | DoProcessing (FCachedAsyncBlock *BlockPtr) |
| |
| void | ClearBlock (FCachedAsyncBlock &Block, bool bForDestructorShouldAlreadyBeClear=false) |
| |
| void | RemoveRequest (FPakProcessedReadRequest *Req, int64 Offset, int64 BytesToRead, const bool &bAlreadyCancelled) |
| |
| void | HandleCanceledRequest (TSet< FCachedAsyncBlock * > &MyCanceledBlocks, FPakProcessedReadRequest *Req, int64 Offset, int64 BytesToRead, bool &bHasCancelledRef) |
| |
| void | GatherResults (uint8 *Memory, int64 Offset, int64 BytesToRead) |
| |
Public Member Functions inherited from IAsyncReadFileHandle |
| | IAsyncReadFileHandle () |
| |
| virtual | ~IAsyncReadFileHandle () |
| |
| virtual bool | UsesCache () |
| |
| virtual void | ShrinkHandleBuffers () |
| |
| | IAsyncReadFileHandle (const IAsyncReadFileHandle &)=delete |
| |
| IAsyncReadFileHandle & | operator= (const IAsyncReadFileHandle &)=delete |
| |
◆ FPakAsyncReadFileHandle()
◆ ~FPakAsyncReadFileHandle()
| FPakAsyncReadFileHandle::~FPakAsyncReadFileHandle |
( |
| ) |
|
|
inline |
◆ ClearBlock()
◆ DoProcessing()
◆ GatherResults()
| void FPakAsyncReadFileHandle::GatherResults |
( |
uint8 * |
Memory, |
|
|
int64 |
Offset, |
|
|
int64 |
BytesToRead |
|
) |
| |
|
inline |
◆ HandleCanceledRequest()
◆ RawReadCallback()
◆ ReadRequest()
Submit an async request and/or wait for an async request
- Parameters
-
| Offset | Offset into the file to start reading. |
| BytesToRead | number 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. |
| PriorityAndFlags | Priority 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. |
| CompleteCallback | Called 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.
◆ RemoveRequest()
◆ SizeRequest()
Request the size of the file. This is also essentially the existence check.
- Parameters
-
| CompleteCallback | Called 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.
◆ StartBlock()
The documentation for this class was generated from the following file: