![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IoDispatcherBackend.h>
Inheritance diagram for IIoDispatcherBackend:Public Member Functions | |
| virtual void | Initialize (TSharedRef< const FIoDispatcherBackendContext > Context)=0 |
| virtual void | Shutdown () |
| virtual void | ResolveIoRequests (FIoRequestList Requests, FIoRequestList &OutUnresolved)=0 |
| virtual FIoRequestImpl * | GetCompletedIoRequests ()=0 |
| virtual void | CancelIoRequest (FIoRequestImpl *Request)=0 |
| virtual void | UpdatePriorityForIoRequest (FIoRequestImpl *Request)=0 |
| virtual bool | DoesChunkExist (const FIoChunkId &ChunkId) const =0 |
| virtual bool | DoesChunkExist (const FIoChunkId &ChunkId, const FIoOffsetAndLength &ChunkRange) const |
| virtual TIoStatusOr< uint64 > | GetSizeForChunk (const FIoChunkId &ChunkId) const =0 |
| virtual TIoStatusOr< uint64 > | GetSizeForChunk (const FIoChunkId &ChunkId, const FIoOffsetAndLength &ChunkRange, uint64 &OutAvailable) const |
| virtual TIoStatusOr< FIoMappedRegion > | OpenMapped (const FIoChunkId &ChunkId, const FIoReadOptions &Options)=0 |
| virtual const TCHAR * | GetName () const =0 |
I/O dispatcher backend interface.
The following methods are called from the I/O dispatcher thread:
All other methods can be called from any thread.
|
pure virtual |
Cancel the I/O request.
Implemented in UE::FPackageResourceIoBackend, UE::IoStore::FHttpIoDispatcherBackend, UE::IoStore::FOnDemandInstallCache, UE::IoStore::FOnDemandIoBackend, UE::IoStore::FFileIoDispatcherBackend, FFileIoStore, and FStorageServerIoDispatcherBackend.
|
pure virtual |
Returns whether the chunk exists.
Implemented in UE::FPackageResourceIoBackend, UE::IoStore::FHttpIoDispatcherBackend, UE::IoStore::FOnDemandInstallCache, UE::IoStore::FOnDemandIoBackend, UE::IoStore::FFileIoDispatcherBackend, FFileIoStore, and FStorageServerIoDispatcherBackend.
|
inlinevirtual |
Returns whether specified range of the chunk exists.
Reimplemented in UE::IoStore::FHttpIoDispatcherBackend, and UE::IoStore::FOnDemandIoBackend.
|
pure virtual |
Returns all completed request(s) to the I/O dispatcher. Triggered by invoking the wake-up callback on the backend context object.
Implemented in UE::FPackageResourceIoBackend, UE::IoStore::FHttpIoDispatcherBackend, UE::IoStore::FOnDemandInstallCache, UE::IoStore::FOnDemandIoBackend, UE::IoStore::FFileIoDispatcherBackend, FFileIoStore, and FStorageServerIoDispatcherBackend.
Returns the name of this backend, for logging purposes
Implemented in UE::IoStore::FHttpIoDispatcherBackend, UE::IoStore::FFileIoDispatcherBackend, UE::FPackageResourceIoBackend, UE::IoStore::FOnDemandInstallCache, UE::IoStore::FOnDemandIoBackend, FFileIoStore, and FStorageServerIoDispatcherBackend.
|
pure virtual |
Returns the size of the chunk.
Implemented in FFileIoStore, UE::FPackageResourceIoBackend, UE::IoStore::FHttpIoDispatcherBackend, UE::IoStore::FOnDemandInstallCache, UE::IoStore::FOnDemandIoBackend, UE::IoStore::FFileIoDispatcherBackend, and FStorageServerIoDispatcherBackend.
|
inlinevirtual |
Returns the size of the chunk and the size of the requested range.
Reimplemented in UE::IoStore::FOnDemandIoBackend.
|
pure virtual |
Called by the I/O dispatcher once initialized.
| Context | Context object used for signalling the I/O dispatcher. |
Implemented in UE::FPackageResourceIoBackend, UE::IoStore::FHttpIoDispatcherBackend, UE::IoStore::FOnDemandIoBackend, UE::IoStore::FFileIoDispatcherBackend, FFileIoStore, and FStorageServerIoDispatcherBackend.
|
pure virtual |
Read the chunk as a memory mapped file.
Implemented in UE::FPackageResourceIoBackend, UE::IoStore::FHttpIoDispatcherBackend, UE::IoStore::FOnDemandInstallCache, UE::IoStore::FOnDemandIoBackend, UE::IoStore::FFileIoDispatcherBackend, FFileIoStore, and FStorageServerIoDispatcherBackend.
|
pure virtual |
Create asynchronous read requests for the list of I/O request(s). The request(s) can span multiple chunks.
| Requests | Request(s) to resolve. |
| OutUnresolved | Unresolved request(s) returned to the I/O dispatcher. |
Implemented in UE::FPackageResourceIoBackend, UE::IoStore::FHttpIoDispatcherBackend, UE::IoStore::FOnDemandInstallCache, UE::IoStore::FOnDemandIoBackend, UE::IoStore::FFileIoDispatcherBackend, FFileIoStore, and FStorageServerIoDispatcherBackend.
Called by the I/O dispatcher when shutting down.
Reimplemented in UE::IoStore::FHttpIoDispatcherBackend, UE::IoStore::FOnDemandInstallCache, UE::IoStore::FOnDemandIoBackend, UE::IoStore::FFileIoDispatcherBackend, FFileIoStore, and FStorageServerIoDispatcherBackend.
|
pure virtual |
Update the priority of the I/O request.
Implemented in UE::FPackageResourceIoBackend, UE::IoStore::FHttpIoDispatcherBackend, UE::IoStore::FOnDemandInstallCache, UE::IoStore::FOnDemandIoBackend, UE::IoStore::FFileIoDispatcherBackend, FFileIoStore, and FStorageServerIoDispatcherBackend.