getInt8 method

int getInt8()

Returns the (possibly negative) integer represented by the byte at current offset in buffer, in two's complement binary representation.

The return value will be between -128 and 127, inclusive.

Implementation

int getInt8() {
  final result = buffer.getInt8(offset);
  offset++;
  return result;
}