AsyncFile.write

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

Queue an async write operation.

The write is performed asynchronously via IOCP. When complete, the registered onWrite callback will be invoked with bytes written.

Parameters

dataData to write.
offsetFile offset to write to.

Returns

FileResult.PENDING if operation was queued, or error status.