decodeWord static method

int decodeWord(
  1. Int8List buf, [
  2. int off = 0
])

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

Implementation

static int decodeWord(final Int8List buf, [int off = 0]) {
  return ((buf[0 + off] & 0xff) << 24) |
      ((buf[1 + off] & 0xff) << 16) |
      ((buf[2 + off] & 0xff) << 8) |
      ((buf[3 + off] & 0xff));
}