public class ByteUtils
extends java.lang.Object
| 构造器和说明 |
|---|
ByteUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
fromHex(java.lang.String hex)
recreate a byte array from hexadecimal
|
static byte[] |
reverse(byte[] data)
reverse a byte array in place WARNING the parameter array is altered and
returned.
|
static java.lang.String |
toBase58(byte[] b)
convert a byte array to a human readable base58 string.
|
static java.lang.String |
toBase58WithChecksum(byte[] b)
Encode in base58 with an added checksum of four bytes.
|
static java.lang.String |
toHex(byte[] data)
convert a byte array to hexadecimal
|
public static java.lang.String toBase58(byte[] b)
b - byte datapublic static java.lang.String toBase58WithChecksum(byte[] b)
b - byte[] datapublic static byte[] reverse(byte[] data)
data - ori datapublic static java.lang.String toHex(byte[] data)
data - byte[] datapublic static byte[] fromHex(java.lang.String hex)
hex - string dataCopyright © 2018. All Rights Reserved.