public static String toHexString(int i) {
        return zeropad(Integer.toHexString(i), 8);
    }
Converts an integer into a padded hex string.
@param i the integer
@return the padded hex string
GPL/DMG/src/dmg/java/mobiledevices/dmg/ghidra/GConv.java