Class ByteArrayUtils

java.lang.Object
io.dingodb.sdk.common.utils.ByteArrayUtils

public class ByteArrayUtils extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte[]
     
    static final byte[]
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    compare(byte[] bytes1, byte[] bytes2)
     
    static int
    compare(byte[] bytes1, byte[] bytes2, boolean ignoreLen, int pos)
     
    static int
    compare(byte[] bytes1, byte[] bytes2, int pos)
     
    static int
    compareWithoutLen(byte[] bytes1, byte[] bytes2)
     
    static int
    compareWithoutLen(byte[] bytes1, byte[] bytes2, int pos)
     
    static byte[]
    concatByteArray(byte @NonNull [] bytes1, byte @NonNull [] bytes2)
     
    static boolean
    equal(byte[] bytes1, byte[] bytes2)
     
    static boolean
    greatThan(byte[] bytes1, byte[] bytes2)
     
    static boolean
    greatThanOrEqual(byte[] bytes1, byte[] bytes2)
     
    static byte[]
    increment(@org.checkerframework.checker.nullness.qual.NonNull byte[] input)
     
    static boolean
    lessThan(byte[] bytes1, byte[] bytes2)
     
    static boolean
    lessThanOrEqual(byte[] bytes1, byte[] bytes2)
     
    static byte[]
    slice(byte @NonNull [] source, int pos, int len)
     
    static String
    toHex(byte[] bytes)
     
    static List<byte[]>
    toList(byte[]... bytes)
     
    static byte[]
    unsliced(byte @NonNull [] slice, int pos)
     
    static byte[]
    unsliced(byte @NonNull [] slice, int pos, int len)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EMPTY_BYTES

      public static final byte[] EMPTY_BYTES
    • MAX_BYTES

      public static final byte[] MAX_BYTES
    • POS

      public static final int POS
      See Also:
  • Method Details

    • compare

      public static int compare(byte[] bytes1, byte[] bytes2, boolean ignoreLen, int pos)
    • compare

      public static int compare(byte[] bytes1, byte[] bytes2)
    • compare

      public static int compare(byte[] bytes1, byte[] bytes2, int pos)
    • compareWithoutLen

      public static int compareWithoutLen(byte[] bytes1, byte[] bytes2)
    • compareWithoutLen

      public static int compareWithoutLen(byte[] bytes1, byte[] bytes2, int pos)
    • equal

      public static boolean equal(byte[] bytes1, byte[] bytes2)
    • lessThan

      public static boolean lessThan(byte[] bytes1, byte[] bytes2)
    • greatThan

      public static boolean greatThan(byte[] bytes1, byte[] bytes2)
    • lessThanOrEqual

      public static boolean lessThanOrEqual(byte[] bytes1, byte[] bytes2)
    • greatThanOrEqual

      public static boolean greatThanOrEqual(byte[] bytes1, byte[] bytes2)
    • toHex

      public static String toHex(byte[] bytes)
    • increment

      public static byte[] increment(@org.checkerframework.checker.nullness.qual.NonNull byte[] input)
    • toList

      public static List<byte[]> toList(byte[]... bytes)
    • concatByteArray

      public static byte[] concatByteArray(byte @NonNull [] bytes1, byte @NonNull [] bytes2)
    • slice

      public static byte[] slice(byte @NonNull [] source, int pos, int len)
    • unsliced

      public static byte[] unsliced(byte @NonNull [] slice, int pos)
    • unsliced

      public static byte[] unsliced(byte @NonNull [] slice, int pos, int len)