code: private boolean compareBytes(byte[] lhs, byte[] rhs, int rhsOffset)
     {
        boolean result = true;
        for (int loop = 0; loop < lhs.length; loop++)
        {
           if (lhs[loop] != rhs[rhsOffset + loop])
           {
              result = false;
              break;
           }
        }
        return (result);
     }
docs: Compare an array of bytes with a subsection of a larger array of bytes.
  
  @param lhs small array of bytes
  @param rhs large array of bytes
  @param rhsOffset offset into larger array of bytes
  @return true if a match is found