getInt2 method
LĂȘ um inteiro de 2 bytes (little-endian) a partir de startOffset.
Implementation
int getInt2(int startOffset) {
if (startOffset + 2 > lengthInBytes) _truncated('an int<2>');
return getUint8(startOffset) | (getUint8(startOffset + 1) << 8);
}