Compares two objects using the memcmp function. Returns 0 if the objects match exactly. Otherwise returns non-zero.
int32 Memcmp( Color lhs, Color rhs, int32 p_nCount )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Color> | lhs | A pointer to the left hand object. |
<Color> | rhs | A pointer to the right hand object. |
int32 | p_nCount | The number of bytes to compare. |
auto Color a = new Color( 255, 128, 64, 255 );
auto Color b = new Color( 255, 128, 64, 255 );
auto Color c = new Color( 128, 64, 32, 255 );
auto ColorAlgorithms a_oAlgorithms;
Console.Out( a_oAlgorithms.Memcmp( a, b, a.SizeInBytes() ) );
Console.Out( a_oAlgorithms.Memcmp( b, c, b.SizeInBytes() ) );
0
1