Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

PRBool nsID::Equals ( const nsID other  )  const [inline]

Equivalency method. Compares this nsID with another.

PR_TRUE if they are the same, PR_FALSE if not.

Definition at line 74 of file nsID.h.

References m0.

    // One would think that this could be done faster with a really
    // efficient implementation of memcmp(), but evidently no
    // memcmp()'s out there are better than this code.
    // See bug http://bugzilla.mozilla.org/show_bug.cgi?id=164580 for
    // details.

    return (PRBool)
      ((((PRUint32*) &m0)[0] == ((PRUint32*) &other.m0)[0]) &&
       (((PRUint32*) &m0)[1] == ((PRUint32*) &other.m0)[1]) &&
       (((PRUint32*) &m0)[2] == ((PRUint32*) &other.m0)[2]) &&
       (((PRUint32*) &m0)[3] == ((PRUint32*) &other.m0)[3]));

Generated by  Doxygen 1.6.0   Back to index