code: public static byte[] intToUInt32(int i, ByteOrder endian) {
          int truncated = (int) ( (long) i );
          return ByteBuffer.allocate(4).order(endian).putInt(truncated).array();
      }
docs: Convert an int to a four-byte array of its representation as an unsigned byte.
  
  @param i         The int to be converted
  @param endian    The {@link java.nio.ByteOrder} endianness of the desired byte array
  @return          The array of bytes representing the 32-bit unsigned integer