Example usage for io.netty.util.internal PlatformDependent equals

List of usage examples for io.netty.util.internal PlatformDependent equals

Introduction

In this page you can find the example usage for io.netty.util.internal PlatformDependent equals.

Prototype

public static boolean equals(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length) 

Source Link

Document

Compare two byte arrays for equality.

Usage

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);
}