AsyncFile.write

FileResult 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

FileResult.PENDING if the write was submitted, or an error variant.