AsyncFile.read

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

Read data from the file at the given offset.

Caller-owned buffer. The caller must not modify the buffer until the read callback fires.

Parameters

bufferBuffer to read into.
offsetFile offset to read from.

Returns

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

FileOutcome.COMPLETED on synchronous completion, or a FileError.