readIntoSync method
Synchronously reads into an existing buffer
.
Reads bytes and writes then into the the range of buffer
from start
to end
. The start
must be non-negative and no greater than buffer.length
. If end
is omitted, it defaults to buffer.length
. Otherwise end
must be no less than start
and no greater than buffer.length
.
Returns the number of bytes read. This maybe be less than end - start
if the file doesn't have that many bytes to read.
Throws a FileSystemException if the operation fails.
Implementation
int readIntoSync(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.dart.dev/stable/2.13.0/dart-io/RandomAccessFile/readIntoSync.html