public MavLink4Net.Messages.IMessage Deserialize(System.IO.BinaryReader reader) { MavLink4Net.Messages.Common.MissionClearAllMessage message = new MavLink4Net.Messages.Common.MissionClearAllMessage(); message.TargetSystem = reader.ReadByte(); message.TargetComponent = reader.ReadByte(); return(message); }
public void Serialize(System.IO.BinaryWriter writer, MavLink4Net.Messages.IMessage message) { MavLink4Net.Messages.Common.MissionClearAllMessage tMessage = message as MavLink4Net.Messages.Common.MissionClearAllMessage; writer.Write(tMessage.TargetSystem); writer.Write(tMessage.TargetComponent); }