unpackUint16 method

int unpackUint16()

Implementation

int unpackUint16() {
  var bytes = read(2);
  int uint16 = (bytes[0] & 0xff) * 256 + (bytes[1] & 0xff);
  index += 2;
  return uint16;
}