Package com.bradyrussell.uiscoin
Class BytesUtil
java.lang.Object
com.bradyrussell.uiscoin.BytesUtil
public class BytesUtil
extends java.lang.Object
- 
Constructor Summary
Constructors Constructor Description BytesUtil() - 
Method Summary
Modifier and Type Method Description static byte[]base64Decode(java.lang.String Base64String)static java.lang.Stringbase64Encode(byte[] Data)static floatbyteArrayToFloat(byte[] Bytes)static intbyteArrayToNumber32(byte[] Bytes)static longbyteArrayToNumber64(byte[] Bytes)static java.lang.StringbytesToHex(byte[] bytes)static byte[]concatArray(byte[] A, byte[] B)static booleandoTransactionsContainTXO(byte[] TransactionHash, int Index, java.util.List<Transaction> Transactions)static byte[]floatToByteArray(float Number)static byte[]getBytesFromHexString(java.lang.String Hex)static java.lang.StringgetConstantSalt()static byte[]numberToByteArray32(int Number)static byte[]numberToByteArray64(long Number)static voidprintBytesHex(byte[] bytes)Deprecated.static voidprintBytesHexDump(byte[] bytes)Deprecated.static voidprintBytesReadable(byte[] bytes)Deprecated.static byte[]unzipBytes(byte[] compressedData)static byte[]zipBytes(byte[] uncompressedData) 
- 
Constructor Details
- 
BytesUtil
public BytesUtil() 
 - 
 - 
Method Details
- 
printBytesReadable
@Deprecated public static void printBytesReadable(byte[] bytes)Deprecated. - 
printBytesHex
@Deprecated public static void printBytesHex(byte[] bytes)Deprecated. - 
printBytesHexDump
@Deprecated public static void printBytesHexDump(byte[] bytes)Deprecated. - 
concatArray
public static byte[] concatArray(byte[] A, byte[] B) - 
byteArrayToNumber32
public static int byteArrayToNumber32(byte[] Bytes) - 
numberToByteArray32
public static byte[] numberToByteArray32(int Number) - 
byteArrayToNumber64
public static long byteArrayToNumber64(byte[] Bytes) - 
numberToByteArray64
public static byte[] numberToByteArray64(long Number) - 
zipBytes
public static byte[] zipBytes(byte[] uncompressedData) throws java.io.IOException- Throws:
 java.io.IOException
 - 
unzipBytes
public static byte[] unzipBytes(byte[] compressedData) throws java.util.zip.DataFormatException, java.io.IOException- Throws:
 java.util.zip.DataFormatExceptionjava.io.IOException
 - 
floatToByteArray
public static byte[] floatToByteArray(float Number) - 
byteArrayToFloat
public static float byteArrayToFloat(byte[] Bytes) - 
base64Encode
public static java.lang.String base64Encode(byte[] Data) - 
base64Decode
public static byte[] base64Decode(java.lang.String Base64String) - 
doTransactionsContainTXO
public static boolean doTransactionsContainTXO(byte[] TransactionHash, int Index, java.util.List<Transaction> Transactions) - 
getConstantSalt
public static java.lang.String getConstantSalt() - 
bytesToHex
public static java.lang.String bytesToHex(byte[] bytes) - 
getBytesFromHexString
public static byte[] getBytesFromHexString(java.lang.String Hex) 
 -