FileIoResult: FileOutcome.PENDING if the operation was
queued, FileOutcome.COMPLETED if it finished synchronously, or a FileError payload.
FileIoResult write(scope const(ubyte)[] data, ulong offset) @trustedQueue an async write operation.
The write is performed asynchronously. When complete, the registered onWrite callback will be invoked with bytes written.
data is copied (TERMINOLOGY.md). The caller may reuse the buffer immediately.
data | Data to write. |
offset | File offset to write to. |
FileIoResult: FileOutcome.PENDING if the operation was
queued, FileOutcome.COMPLETED if it finished synchronously, or a FileError payload.