public class ByteUtils extends Object
| Constructor and Description |
|---|
ByteUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getCounterBytes(long counter)
Get byte array from counter value
|
static byte[] |
toBytesFromHex(String data)
Get byte array from hex string
|
static byte[] |
toBytesFromInt(int number)
Get byte array from int type value
|
static String |
toHexStringFromBytes(byte[] data)
Get hex string from byte array
|
static long |
toLongFromBytes(byte[] data)
Get long value from byte array
|
public static byte[] toBytesFromHex(String data)
data - specified hex string datapublic static String toHexStringFromBytes(byte[] data)
data - specified byte arraypublic static byte[] toBytesFromInt(int number)
number - specified in type valuepublic static long toLongFromBytes(byte[] data)
data - specified byte arraypublic static byte[] getCounterBytes(long counter)
counter - specified counter valueCopyright © 2023. All rights reserved.