public MavLink4Net.Messages.IMessage Deserialize(System.IO.BinaryReader reader) { MavLink4Net.Messages.Common.CommandAckMessage message = new MavLink4Net.Messages.Common.CommandAckMessage(); message.Command = ((MavLink4Net.Messages.Common.Cmd)(reader.ReadUInt16())); message.Result = ((MavLink4Net.Messages.Common.Result)(reader.ReadByte())); return(message); }
public void Serialize(System.IO.BinaryWriter writer, MavLink4Net.Messages.IMessage message) { MavLink4Net.Messages.Common.CommandAckMessage tMessage = message as MavLink4Net.Messages.Common.CommandAckMessage; writer.Write(((ushort)(tMessage.Command))); writer.Write(((byte)(tMessage.Result))); }