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