public final class ByteUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
toHexadecimal(byte[] bytes)
Get a hexadecimal string from given array of bytes.
|
static long |
toNumber(byte[] bytes)
Get a number from a given array of bytes.
|
static long |
toNumber(byte[] bytes,
int start,
int end)
Get a number from a given array of bytes.
|
public static long toNumber(byte[] bytes)
bytes - a byte arraypublic static long toNumber(byte[] bytes,
int start,
int end)
bytes - a byte arraystart - first byte of the arrayend - last byte of the array (exclusive)public static String toHexadecimal(byte[] bytes)
bytes - byte arrayCopyright © 2024. All rights reserved.