public void RosDeserializeInPlace(ref Buffer b)
 {
     foreach (DynamicMessage t in Value)
     {
         t.RosDeserializeInPlace(ref b);
     }
 }
 public void Deserialize(T msg, ref Buffer b)
 {
     foreach (var field in messageFields)
     {
         field.RosDeserialize(msg, ref b);
     }
 }
示例#3
0
        public T RosDeserialize(ref Buffer b)
        {
            var msg = new T();

            Definition.Deserialize(msg, ref b);
            return(msg);
        }
示例#4
0
 public void RosDeserializeInPlace(ref Buffer b)
 {
     for (int i = 0; i < Count; i++)
     {
         Value[i] = Generator.RosDeserialize(ref b);
     }
 }
示例#5
0
 public void RosDeserializeInPlace(ref Buffer b)
 {
     Value = b.DeserializeArray <T>();
     for (int i = 0; i < Value.Length; i++)
     {
         Value[i] = Generator.RosDeserialize(ref b);
     }
 }
示例#6
0
        public void RosDeserializeInPlace(ref Buffer b)
        {
            uint count = b.Deserialize <uint>();

            if (count == 0)
            {
                Value = Array.Empty <DynamicMessage>();
                return;
            }

            Value = new DynamicMessage[count];
            for (int i = 0; i < count; i++)
            {
                Value[i] = new DynamicMessage(generator);
                Value[i].RosDeserializeInPlace(ref b);
            }
        }
示例#7
0
 public void RosDeserialize(T msg, ref Buffer b) => b.DeserializeStringArray(getter(msg), arraySize);
示例#8
0
 public void RosSerialize(T msg, ref Buffer b) => b.SerializeArray(getter(msg), arraySize);
示例#9
0
 public void RosSerialize(ref Buffer b)
 {
     b.Serialize(Value);
 }
示例#10
0
 public void RosSerialize(ref Buffer b) => Definition.Serialize((T)this, ref b);
示例#11
0
 public void RosDeserializeInPlace(ref Buffer b)
 {
     Value = Generator.RosDeserialize(ref b);
 }
示例#12
0
 public void RosSerialize(ref Buffer b)
 {
     Value.RosSerialize(ref b);
 }
示例#13
0
 public void RosDeserialize(T msg, ref Buffer b) => setter(msg, b.DeserializeStructArray <TField>(arraySize));
示例#14
0
 public ISerializable RosDeserialize(ref Buffer b) => throw new NotImplementedException();
示例#15
0
 public void RosSerialize(ref Buffer b) => throw new NotImplementedException();
示例#16
0
 public void RosSerialize(T msg, ref Buffer b) => b.Serialize(getter(msg));
示例#17
0
 public void RosDeserialize(T msg, ref Buffer b) => setter(msg, b.DeserializeString());
示例#18
0
 public void RosSerialize(T msg, ref Buffer b) => b.SerializeStructList(getter(msg), arraySize);
示例#19
0
 ISerializable ISerializable.RosDeserialize(ref Buffer b) => RosDeserialize(ref b);
示例#20
0
 public void RosDeserializeInPlace(ref Buffer b)
 {
     Value = b.DeserializeStringArray(Count);
 }
 public void RosSerialize(ref Buffer b)
 {
     b.SerializeArray(Value, Count);
 }
示例#22
0
 public void RosSerialize(ref Buffer b)
 {
     b.SerializeStructArray(Value);
 }
示例#23
0
 public void RosDeserialize(T msg, ref Buffer b) => b.DeserializeStructList(getter(msg));
示例#24
0
 public void RosDeserializeInPlace(ref Buffer b)
 {
     Value = b.DeserializeStructArray <T>();
 }
示例#25
0
 public void RosDeserializeInPlace(ref Buffer b)
 {
     Value = b.DeserializeString();
 }
示例#26
0
 public void RosDeserialize(T msg, ref Buffer b) => setter(msg, b.Deserialize <TField>());
示例#27
0
 public void RosDeserialize(T msg, ref Buffer b) => setter(msg, b.DeserializeStringArray(arraySize));
示例#28
0
 public void RosSerialize(T msg, ref Buffer b) => b.SerializeStructArray(getter(msg));