Class ByteTool

java.lang.Object
io.datarouter.bytes.ByteTool

public class ByteTool
extends Object
  • Field Details

    • EMPTY_ARRAY_2

      public static final byte[][] EMPTY_ARRAY_2
  • Constructor Details

    • ByteTool

      public ByteTool()
  • Method Details

    • getComparableByte

      public static byte getComparableByte​(byte value)
    • flipToAndFromComparableByteArray

      public static byte[] flipToAndFromComparableByteArray​(byte[] ins)
    • flipToAndFromComparableByteArray

      public static byte[] flipToAndFromComparableByteArray​(byte[] ins, int offset, int length)
    • copyOfRange

      public static byte[] copyOfRange​(byte[] original, int from, int length)
    • unsignedIncrement

      public static byte[] unsignedIncrement​(byte[] in)
    • unsignedIncrementOverflowToNull

      public static byte[] unsignedIncrementOverflowToNull​(byte[] in)
    • totalLength

      public static int totalLength​(byte[]... arrays)
    • totalLength

      public static int totalLength​(List<byte[]> arrays)
    • concat

      public static byte[] concat​(byte[]... arrays)
    • concat

      public static byte[] concat​(List<byte[]> arrays)
    • padPrefix

      public static byte[] padPrefix​(byte[] in, int finalWidth)
    • toBoxedBytes

      @Deprecated public static ArrayList<Byte> toBoxedBytes​(byte[] ins)
      Deprecated.
    • fromBoxedBytes

      @Deprecated public static byte[] fromBoxedBytes​(List<Byte> values)
      Deprecated.