Package io.dingodb.sdk.common.utils
Class ByteArrayUtils
java.lang.Object
io.dingodb.sdk.common.utils.ByteArrayUtils
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte[]static final byte[]static final int -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompare(byte[] bytes1, byte[] bytes2) static intcompare(byte[] bytes1, byte[] bytes2, boolean ignoreLen, int pos) static intcompare(byte[] bytes1, byte[] bytes2, int pos) static intcompareWithoutLen(byte[] bytes1, byte[] bytes2) static intcompareWithoutLen(byte[] bytes1, byte[] bytes2, int pos) static byte[]concatByteArray(byte @NonNull [] bytes1, byte @NonNull [] bytes2) static booleanequal(byte[] bytes1, byte[] bytes2) static booleangreatThan(byte[] bytes1, byte[] bytes2) static booleangreatThanOrEqual(byte[] bytes1, byte[] bytes2) static byte[]increment(@org.checkerframework.checker.nullness.qual.NonNull byte[] input) static booleanlessThan(byte[] bytes1, byte[] bytes2) static booleanlessThanOrEqual(byte[] bytes1, byte[] bytes2) static byte[]slice(byte @NonNull [] source, int pos, int len) static StringtoHex(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)
-
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
-
increment
public static byte[] increment(@org.checkerframework.checker.nullness.qual.NonNull byte[] input) -
toList
-
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)
-