readByte method Null safety
override
Read a single byte.
Implementation
@override
int readByte() {
if (isEOS) {
return 0;
}
if (_bufferPosition >= _bufferSize) {
_readBuffer();
}
if (_bufferPosition >= _bufferSize) {
return 0;
}
_position++;
return _buffer[_bufferPosition++] & 0xff;
}