Stage changes pre-downgrade to 1.18.2
This commit is contained in:
parent
bd9a99e78e
commit
48a4e126cb
3 changed files with 8 additions and 3 deletions
|
@ -3,6 +3,11 @@ package dev.zontreck.libzontreck.util;
|
|||
public class BinUtil {
|
||||
private static final char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray();
|
||||
|
||||
/**
|
||||
* Converts a byte array to hexadecimal
|
||||
* @param bytes
|
||||
* @return
|
||||
*/
|
||||
public static String bytesToHex(byte[] bytes) {
|
||||
char[] hexChars = new char[bytes.length * 2];
|
||||
for (int j = 0; j < bytes.length; j++) {
|
||||
|
|
Reference in a new issue