Example #1
0
 /// <summary>
 /// Compares internal data for equality.
 /// </summary>
 /// <param name="b"></param>
 /// <returns></returns>
 public bool Equals(Signal b)
 {
     if (!RadioCommunicationsHeader.Equals(this, b))
     {
         return(false);
     }
     if (!encodingScheme.Equals(b.encodingScheme))
     {
         return(false);
     }
     if (sampleRate != b.sampleRate)
     {
         return(false);
     }
     if (DataLength != b.DataLength)
     {
         return(false);
     }
     if (samples != b.samples)
     {
         return(false);
     }
     if (!data.Equals(b.data))
     {
         return(false);
     }
     return(true);
 }
Example #2
0
 /// <summary>
 /// Compares internal data for equality.
 /// </summary>
 /// <param name="a"></param>
 /// <param name="b"></param>
 /// <returns></returns>
 public static bool Equals(RadioCommunicationsHeader a, RadioCommunicationsHeader b)
 {
     return(a.Equals(b));
 }