getInt2 method

int getInt2(
  1. int startOffset
)

Implementation

int getInt2(int startOffset) {
  final bd = ByteData(2);
  bd.setUint8(0, getUint8(startOffset));
  bd.setUint8(1, getUint8(startOffset + 1));

  return bd.getUint16(0, Endian.little);
}