Here you can find the source of bytesEqual(final byte[] b1, final int j, final byte[] b2, final int k, final int len)
public static final boolean bytesEqual(final byte[] b1, final int j, final byte[] b2, final int k, final int len)
//package com.java2s; public class Main { /**//from w ww . j av a 2s.com * Return true if the byte ranges are identical. */ public static final boolean bytesEqual(final byte[] b1, final int j, final byte[] b2, final int k, final int len) { for (int i = 0; i < len; i++) { if (b1[i + j] != b2[i + k]) return false; } return true; } }