Data bits

This commit is contained in:
cyberpwn committed 2021-09-26 04:42:44 -04:00
1 parent c7a8cb566b
commit f2a5489363
8 files changed
+33 -49

No files matched your search

@@ -19,6 +19,7 @@
package com.volmit.iris.util.io;
import com.volmit.iris.Iris;
import com.volmit.iris.util.format.Form;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
@@ -162,6 +163,10 @@ public class IO {
return new String(hexChars).toUpperCase();
}
public static String print(byte[] bytes) {
return Form.memSize(bytes.length, 2) + "[" + bytesToHex(bytes) + "]";
}
public static String longsToHex(long[] bytes) {
byte[] v = new byte[bytes.length * 8];