public class Helpers extends Object
| Constructor and Description |
|---|
Helpers() |
| Modifier and Type | Method and Description |
|---|---|
static String |
arrayToString(Object arrX) |
static boolean |
byteArraysEqual(byte[] a,
byte[] b) |
static byte[] |
byteArrayToLenPrependedByteArray(byte[] x) |
static byte[] |
clone(byte[] in) |
static byte[] |
concatenate(byte[][] a) |
static byte[] |
concatenate(byte[] a,
byte[] b) |
static byte[] |
concatenate(byte[] a,
byte[] b,
byte[] c) |
static byte[] |
fromHex(String _s) |
static byte[] |
getRandom(int numBytes) |
static byte[] |
hostToNet(int x) |
static byte[] |
hostToNet(long x) |
static byte[] |
hostToNet(short x) |
static <T> boolean |
isOneOf(T val,
T... values) |
static int |
netToHost(byte[] x) |
static void |
nonDefaultMarshallIn(InByteBuf buf,
TpmStructure s) |
static void |
nonDefaultMarshallOut(OutByteBuf buf,
TpmStructure s) |
static byte[] |
shiftRight(byte[] x,
int numBits) |
static String |
toHex(byte[] x) |
static String |
toHex(byte[] x,
int start,
int len) |
public static byte[] hostToNet(long x)
public static byte[] hostToNet(int x)
public static byte[] hostToNet(short x)
public static int netToHost(byte[] x)
public static String toHex(byte[] x)
public static byte[] fromHex(String _s)
public static String toHex(byte[] x, int start, int len)
public static byte[] getRandom(int numBytes)
public static void nonDefaultMarshallOut(OutByteBuf buf, TpmStructure s)
public static void nonDefaultMarshallIn(InByteBuf buf, TpmStructure s)
public static byte[] concatenate(byte[][] a)
public static byte[] concatenate(byte[] a,
byte[] b)
public static byte[] concatenate(byte[] a,
byte[] b,
byte[] c)
public static byte[] shiftRight(byte[] x,
int numBits)
public static boolean byteArraysEqual(byte[] a,
byte[] b)
public static byte[] byteArrayToLenPrependedByteArray(byte[] x)
public static byte[] clone(byte[] in)
@SafeVarargs public static <T> boolean isOneOf(T val, T... values)
Copyright © 2017. All rights reserved.