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