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 in a background thread. When complete, the registered onWrite callback will be invoked with bytes written.
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.