AsyncFile.read

FileResult read(ubyte[] buffer, ulong offset) @trusted

Queue an async read operation.

The read is performed asynchronously. When complete, the registered onRead callback will be invoked with the data.

buffer is caller-owned (TERMINOLOGY.md). Must remain valid until the onRead callback fires.

Parameters

bufferBuffer to read data into.
offsetFile offset to read from.

Returns

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