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