Class BytesUtil

java.lang.Object
com.bradyrussell.uiscoin.BytesUtil

public class BytesUtil
extends java.lang.Object
  • Constructor Details

  • 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.DataFormatException
      java.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)