W3cubDocs

/Dart 2

readInto method

Future<int> readInto (List<int> buffer, [ int start = 0, int end ])

Reads into an existing List from the file. If start is present, the bytes will be filled into buffer from at index start, otherwise index 0. If end is present, the end - start bytes will be read into buffer, otherwise up to buffer.length. If end == start nothing happens.

Returns a Future<int> that completes with the number of bytes read.

Implementation

Future<int> readInto(List<int> buffer, [int start = 0, int end]);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/RandomAccessFile/readInto.html