#1241 File content is different to what FFDEC shows in HEX view near instructions

This commit is contained in:
honfika@gmail.com
2016-05-29 12:32:50 +02:00
parent 81c3df016d
commit db0d490fc9
5 changed files with 29 additions and 1 deletions

View File

@@ -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);