FileIoResult: FileOutcome.PENDING if the read was submitted,
FileOutcome.COMPLETED on synchronous completion, or a FileError.
FileIoResult read(ubyte[] buffer, ulong offset) @trustedRead data from the file at the given offset.
Caller-owned buffer. The caller must not modify the buffer until the read callback fires.
buffer | Buffer to read into. |
offset | File offset to read from. |
FileIoResult: FileOutcome.PENDING if the read was submitted,
FileOutcome.COMPLETED on synchronous completion, or a FileError.