public class Numeric extends Object
| Constructor and Description |
|---|
Numeric() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
bigIntegerToBytes(BigInteger b,
int numBytes) |
static byte[] |
bigIntegerToBytesSigned(BigInteger b,
int numBytes) |
static byte[] |
hexStringToByteArray(String input) |
static byte[] |
merge(byte[]... arrays) |
static BigInteger |
toBigInt(byte[] value) |
static BigInteger |
toBigInt(String hexValue) |
static byte[] |
toBytesPadded(BigInteger value,
int length) |
static String |
toHexString(byte[] input) |
static String |
toHexString(byte[] input,
int offset,
int length) |
public static BigInteger toBigInt(byte[] value)
public static BigInteger toBigInt(String hexValue)
public static byte[] hexStringToByteArray(String input)
public static String toHexString(byte[] input, int offset, int length)
public static String toHexString(byte[] input)
public static byte[] toBytesPadded(BigInteger value, int length)
public static byte[] bigIntegerToBytes(BigInteger b, int numBytes)
public static byte[] bigIntegerToBytesSigned(BigInteger b, int numBytes)
public static byte[] merge(byte[]... arrays)
Copyright © 2022 IoTeX Group. All rights reserved.