public DynamicMessageFixedArrayField(uint count, DynamicMessage generator)
        {
            Count          = count;
            this.generator = generator;

            Value = new DynamicMessage[count];
            for (int i = 0; i < count; i++)
            {
                Value[i] = new DynamicMessage(generator);
            }
        }
Esempio n. 2
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);
            }
        }
Esempio n. 3
0
 public DynamicMessageArrayField(DynamicMessage generator)
 {
     this.generator = generator;
 }