readBytes method
Read count
bytes from the stream.
Implementation
@override
InputStreamBase readBytes(int count) {
if (isEOS) {
return InputFileStream.clone(this, length: 0);
}
if ((_position + count) > _fileSize) {
count = _fileSize - _position;
}
final bytes =
InputFileStream.clone(this, position: _position, length: count);
_position += bytes.length;
return bytes;
}