(byte[] array)
| 68 | } |
| 69 | |
| 70 | public static void logByteArray(byte[] array) { |
| 71 | ByteBuf b = Unpooled.wrappedBuffer(array); |
| 72 | Grasscutter.getLogger().info("\n" + ByteBufUtil.prettyHexDump(b)); |
| 73 | b.release(); |
| 74 | } |
| 75 | |
| 76 | private static final char[] HEX_ARRAY = "0123456789abcdef".toCharArray(); |
| 77 | public static String bytesToHex(byte[] bytes) { |