docs: private static int byteArrayToInt(byte[] data)
      {
          // byte[] -> int
          int number = 0;
          for (int i = 0; i < 4; ++i)
          {
              number |= (data[3-i] & 0xff) << (i << 3);
          }
          return number;
      }