code: public static boolean arrayequals(byte[] a,
                                        byte[] b,
                                        int count) {
          for (int i = 0; i < count; i++) {
              if (a[i] != b[i]) {
                  return false;
              }
          }
          return true;
      }
docs: Compares <code>count</code> first bytes in the arrays
  <code>a</code> and <code>b</code>.
  
  @param a     The first array to compare.
  @param b     The second array to compare.
  @param count How many bytes should be compared.
  
  @return <code>true</code> if <code>count</code> first bytes in arrays
  <code>a</code> and <code>b</code> are equal.