FiberFile.readInto

size_t readInto(ubyte[] buffer, ulong offset) @trusted

Read into a caller-supplied buffer starting at offset. Yields until the read completes.

Parameters

bufferBuffer to fill. Its length determines the maximum read size.
offsetFile offset to start reading from.

Returns

The number of bytes actually read. May be less than

buffer.length on EOF.

Throws

FiberIoException on read error.