mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-25 15:07:07 +00:00
#1241 File content is different to what FFDEC shows in HEX view near instructions
This commit is contained in:
@@ -397,6 +397,15 @@ public class Helper {
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static String formatHex(long value, int width) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(Long.toHexString(value));
|
||||
if (width > sb.length()) {
|
||||
sb.insert(0, ZEROS8, 0, width - sb.length());
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static String formatInt(int value, int width) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(value);
|
||||
|
||||
Reference in New Issue
Block a user