getInt method

int getInt(
  1. int offset,
  2. int length, [
  3. Endian endian = Endian.little
])

Reads a region of the buffer as a signed integer. Items are read from the range [offset : offset+length]. The range must satisfy the relations 0offsetoffset+lengththis.length.

Implementation

int getInt(final int offset, final int length, [final Endian endian = Endian.little]) {
  return getUint(offset, length, endian).toSigned(length * _bitLength);
}