Compare() public method

Compares, whether two given arrays are similar starting from current position.
public Compare ( byte arr ) : bool
arr byte Array to compare.
return bool
Esempio n. 1
0
 /// <summary>
 ///  Check LLC bytes.
 /// </summary>
 /// <param name="server">Is server.</param>
 /// <param name="data">Received data.</param>
 private static bool GetLLCBytes(bool server,
                                 GXByteBuffer data)
 {
     if (server)
     {
         return data.Compare(GXCommon.LLCSendBytes);
     }
     return data.Compare(GXCommon.LLCReplyBytes);
 }