decodeShort static method

int decodeShort(
  1. Int8List buf,
  2. int off
)

Decode a big-endian 16-bit integer from an Int8List.

Implementation

static int decodeShort(final Int8List buf, int off) {
  return (((buf[0 + off] & 0xff) << 8) | ((buf[1 + off] & 0xff)));
}