AsyncFile.write

FileIoResult write(scope const(ubyte)[] data, ulong offset) @trusted

Write 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.

Parameters

dataData to write.
offsetFile offset to write to.

Returns

a FileIoResult: FileOutcome.PENDING if the write was submitted,

FileOutcome.COMPLETED on synchronous completion, or a FileError.