FileIoResult: FileOutcome.PENDING if the operation was
queued, FileOutcome.COMPLETED if it finished synchronously, or a FileError payload.
FileIoResult read(ubyte[] buffer, ulong offset) @trustedQueue an async read operation.
The read is performed asynchronously. When complete, the registered onRead callback will be invoked with the data.
buffer is caller-owned (TERMINOLOGY.md). Must remain valid until the onRead callback fires.
buffer | Buffer to read data into. |
offset | File offset to read from. |
FileIoResult: FileOutcome.PENDING if the operation was
queued, FileOutcome.COMPLETED if it finished synchronously, or a FileError payload.