Stage changes pre-downgrade to 1.18.2

This commit is contained in:
Aria 2023-02-22 01:33:03 -07:00
parent bd9a99e78e
commit 48a4e126cb
3 changed files with 8 additions and 3 deletions

View file

@ -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++) {