mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-08 00:36:19 +00:00
Data bits
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user