v0.7 Add GLv0.7 support

This commit is contained in:
Dmitry Isaenko 2019-09-17 03:50:42 +03:00
parent a8b8bfa849
commit 56a53ef49b
6 changed files with 202 additions and 103 deletions

View file

@ -28,4 +28,16 @@ public class RainbowHexDump {
+ new String(byteArray, StandardCharsets.UTF_8)
+ "\n");
}
public static void hexDumpUTF16LE(byte[] byteArray){
System.out.print(ANSI_BLUE);
for (int i=0; i < byteArray.length; i++)
System.out.print(String.format("%02d-", i%100));
System.out.println(">"+ANSI_RED+byteArray.length+ANSI_RESET);
for (byte b: byteArray)
System.out.print(String.format("%02x ", b));
System.out.print("\t\t\t"
+ new String(byteArray, StandardCharsets.UTF_16LE)
+ "\n");
}
}