AsyncFile.read

FileResult 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

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