code: public static void setInt(final byte[] b, final int n, final int offset) {
          b[offset + 0] = (byte) (n >>> 24);
          b[offset + 1] = (byte) (n >>> 16);
          b[offset + 2] = (byte) (n >>> 8);
          b[offset + 3] = (byte) (n >>> 0);
      }
docs: Writes a big-endian 4-byte int at an offset in the given array.
  @param b The array to write to.
  @param offset The offset in the array to start writing at.
  @throws IndexOutOfBoundsException if the byte array is too small.