Lines Matching defs:b2
29 public static boolean equalsBlock(byte[] b1, byte[] b2, int len) {
31 if (b1[i] != b2[i]) {
33 + " b2[" + i + "] : " + b2[i]);
40 public static boolean equals(byte[] b1, byte[] b2) {
41 if (b2.length != b1.length) {
43 + " b2.length = " + b2.length );
46 return equalsBlock(b1, b2, b1.length);
50 * Verify b1's partial part is same as b2. compares b1 and b2 by chopping up
51 * b1 into blocks of b1BKSize and b2 into blocks of b2BKSize, and then
55 * @param b2 saved byte array.
57 * @param b2BKSize b2's block size.
60 public static boolean equalsBlockPartial(byte[] b1, byte[] b2, int b1BKSize,
67 if (b1[j1] != b2[j2]) {
69 b1[j1] + " b2[" + j2 + "]:" + b2[j2]);