/// <inheritdoc/> protected override bool EqualsIntl(IStatusChannel data) { return(data is StatusChannel2 other && this.PrimaryGNSSReceiverCharacters == other.PrimaryGNSSReceiverCharacters && this.PrimaryGNSSReceiverPackets == other.PrimaryGNSSReceiverPackets && this.PrimaryGNSSReceiverCharactersNotUnderstood == other.PrimaryGNSSReceiverCharactersNotUnderstood && this.PrimaryGNSSReceiverPacketsNotUsed == other.PrimaryGNSSReceiverPacketsNotUsed); }
/// <inheritdoc/> protected override bool EqualsIntl(IStatusChannel data) { return(data is StatusChannel0 other && this.FullTime == other.FullTime && this.NumberOfSatellites == other.NumberOfSatellites && this.PositionMode == other.PositionMode && this.VelocityMode == other.VelocityMode && this.OrientationMode == other.OrientationMode); }
/// <summary> /// A pure implementation of value equality that avoids the routine checks in /// <see cref="Equals(object)"/> and <see cref="Equals(IStatusChannel)"/>. /// To override the default equals method, override this method instead. /// </summary> /// <param name="pkt"></param> /// <returns> /// <see langword="true"/> if the specified object is equal to this current object; otherwise /// <see langword="false"/>. /// </returns> protected abstract bool EqualsIntl(IStatusChannel pkt);
/// <inheritdoc/> public bool Equals(IStatusChannel rhs) { return(rhs != null && this.StatusChannelByte == rhs.StatusChannelByte && EqualsIntl(rhs)); }
public static void Unmarshal(this IStatusChannel statusChannel, byte[] buffer, ref int offset) { statusChannel.Unmarshal(buffer, offset); offset += NcomPacketA.StatusChannelLength; }