bytesAvailable property

int get bytesAvailable

Returns the number of bytes that can be read from the internal buffer. If we're at EOF, returns zero, otherwise, returns a non-zero positive integer.

Implementation

int get bytesAvailable => _source.lengthInBytes - seek;