buffer.length on EOF.
FiberFile.readInto
size_t readInto(ubyte[] buffer, ulong offset) @trustedRead into a caller-supplied buffer starting at offset. Yields until the read completes.
Parameters
buffer | Buffer to fill. Its length determines the maximum read size. |
offset | File offset to start reading from. |
Returns
The number of bytes actually read. May be less than
Throws
FiberIoException on read error.