getInt2 method
LĂȘ um inteiro de 2 bytes (little-endian) a partir de 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);
}