Data bits

This commit is contained in:
cyberpwn
2021-09-26 04:42:44 -04:00
parent c7a8cb566b
commit f2a5489363
8 changed files with 33 additions and 49 deletions

View File

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