FileIoResult: FileOutcome.PENDING if the write was submitted,
FileOutcome.COMPLETED on synchronous completion, or a FileError.
FileIoResult write(scope const(ubyte)[] data, ulong offset) @trustedWrite data to the file at the given offset.
Data is copied into an internal buffer (Copy semantics). The caller may reuse or free the buffer immediately.
data | Data to write. |
offset | File offset to write to. |
FileIoResult: FileOutcome.PENDING if the write was submitted,
FileOutcome.COMPLETED on synchronous completion, or a FileError.