List of usage examples for io.netty.util.internal PlatformDependent equals
public static boolean equals(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length)
From source file:herddb.utils.CompareBytesUtils.java
License:Apache License
public static boolean arraysEquals(byte[] left, int fromIndex, int toIndex, byte[] right, int fromIndex2, int toIndex2) { int aLength = toIndex - fromIndex; int bLength = toIndex2 - fromIndex2; if (aLength != bLength) { return false; }// w w w . j a v a2 s.co m return PlatformDependent.equals(left, fromIndex, right, fromIndex2, aLength); }