readInt8 method

int readInt8()

Reads an 8-bit signed integer. Increments index by 1.

Implementation

int readInt8() {
  final byteData = this._byteData;
  final index = this.index;
  final newIndex = index + 1;
  if (newIndex > byteData.lengthInBytes) {
    throw _eofException(index, "int8");
  }
  final value = _byteData.getInt8(index);
  this.index = index + 1;
  return value;
}