public override int Deserialize(System.Byte[] serialized, int startIndex)
 {
     int curIndex = startIndex;
     curIndex += header.Deserialize(serialized, curIndex);
     System.UInt32 Messages_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(Messages_len).Length;
     for (int i = 0; i < (int)Messages_len; i++)
     {
         teleop_msgs.SerializedMessage element = new teleop_msgs.SerializedMessage();
         curIndex += element.Deserialize(serialized, curIndex);
         Messages.Add(element);
     }
     return (curIndex - startIndex);
 }
Ejemplo n.º 2
0
            public override int Deserialize(System.Byte[] serialized, int startIndex)
            {
                int curIndex = startIndex;

                curIndex += header.Deserialize(serialized, curIndex);
                System.UInt32 Messages_len = BitConverter.ToUInt32(serialized, curIndex);
                curIndex += BitConverter.GetBytes(Messages_len).Length;
                for (int i = 0; i < (int)Messages_len; i++)
                {
                    teleop_msgs.SerializedMessage element = new teleop_msgs.SerializedMessage();
                    curIndex += element.Deserialize(serialized, curIndex);
                    Messages.Add(element);
                }
                return(curIndex - startIndex);
            }