Here you can find the source of equals(final byte[] pArrayA, final int pOffsetA, final byte[] pArrayB, final int pOffsetB, final int pLength)
public static boolean equals(final byte[] pArrayA, final int pOffsetA, final byte[] pArrayB, final int pOffsetB, final int pLength)
//package com.java2s; public class Main { public static boolean equals(final byte[] pArrayA, final int pOffsetA, final byte[] pArrayB, final int pOffsetB, final int pLength) { final int lastIndexA = pOffsetA + pLength; if (lastIndexA > pArrayA.length) { throw new ArrayIndexOutOfBoundsException(pArrayA.length); }/*from www . j a v a2s. com*/ final int lastIndexB = pOffsetB + pLength; if (lastIndexB > pArrayB.length) { throw new ArrayIndexOutOfBoundsException(pArrayB.length); } for (int a = pOffsetA, b = pOffsetB; a < lastIndexA; a++, b++) { if (pArrayA[a] != pArrayB[b]) { return false; } } return true; } }