readIntoSync 抽象方法
同步读取到现有的 buffer 中。
从 start 到 end 的 buffer 范围内读取字节并将其写入。 start 必须是非负数,且不大于 buffer.length。如果省略 end,则默认为 buffer.length。否则,end 必须不小于 start 且不大于 buffer.length。
返回读取的字节数。这可能会小于 end - start,如果文件没有那么多字节可读。
如果操作失败,则抛出 FileSystemException。
实现
int readIntoSync(List<int> buffer, [int start = 0, int? end]);