static int getUInt16(Uint8List buf, int offset) { return (buf[offset] & 0xff) | ((buf[offset + 1] & 0xff) << 8); }