public static void read(rcl_interfaces.msg.ParameterDescriptor data, Halodi.CDR.CDRDeserializer cdr) { data.name = cdr.read_type_d(); data.type = cdr.read_type_9(); data.description = cdr.read_type_d(); data.additional_constraints = cdr.read_type_d(); data.read_only = cdr.read_type_7(); int floating_point_range_length = cdr.read_type_2(); data.floating_point_range = new System.Collections.Generic.List <rcl_interfaces.msg.FloatingPointRange>(floating_point_range_length); for (int i = 0; i < floating_point_range_length; i++) { rcl_interfaces.msg.FloatingPointRange new_floating_point_range = rcl_interfaces.msg.FloatingPointRangePubSubType.Create(); rcl_interfaces.msg.FloatingPointRangePubSubType.read(new_floating_point_range, cdr); data.floating_point_range.Add(new_floating_point_range); } int integer_range_length = cdr.read_type_2(); data.integer_range = new System.Collections.Generic.List <rcl_interfaces.msg.IntegerRange>(integer_range_length); for (int i = 0; i < integer_range_length; i++) { rcl_interfaces.msg.IntegerRange new_integer_range = rcl_interfaces.msg.IntegerRangePubSubType.Create(); rcl_interfaces.msg.IntegerRangePubSubType.read(new_integer_range, cdr); data.integer_range.Add(new_integer_range); } }
public static void read(rcl_interfaces.msg.FloatingPointRange data, Halodi.CDR.CDRDeserializer cdr) { data.from_value = cdr.read_type_6(); data.to_value = cdr.read_type_6(); data.step = cdr.read_type_6(); }
public static void write(rcl_interfaces.msg.FloatingPointRange data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_6(data.from_value); cdr.write_type_6(data.to_value); cdr.write_type_6(data.step); }
public override void deserialize(MemoryStream stream, rcl_interfaces.msg.FloatingPointRange data) { using (BinaryReader reader = new BinaryReader(stream)) { Halodi.CDR.CDRDeserializer cdr = new Halodi.CDR.CDRDeserializer(reader); read(data, cdr); } }
public override void serialize(rcl_interfaces.msg.FloatingPointRange data, MemoryStream stream) { using (BinaryWriter writer = new BinaryWriter(stream)) { Halodi.CDR.CDRSerializer cdr = new Halodi.CDR.CDRSerializer(writer); write(data, cdr); } }
public void Set(ParameterDescriptor other) { name = other.name; type = other.type; description = other.description; additional_constraints = other.additional_constraints; read_only = other.read_only; if (other.floating_point_range == null) { floating_point_range = null; } else { floating_point_range = new System.Collections.Generic.List <rcl_interfaces.msg.FloatingPointRange>(other.floating_point_range.Count); for (int i1 = 0; i1 < other.floating_point_range.Count; i1++) { if (other.floating_point_range[i1] == null) { floating_point_range.Add(null); } else { rcl_interfaces.msg.FloatingPointRange newElement = rcl_interfaces.msg.FloatingPointRangePubSubType.Create(); rcl_interfaces.msg.FloatingPointRangePubSubType.Copy(other.floating_point_range[i1], newElement); floating_point_range.Add(newElement); } } } if (other.integer_range == null) { integer_range = null; } else { integer_range = new System.Collections.Generic.List <rcl_interfaces.msg.IntegerRange>(other.integer_range.Count); for (int i2 = 0; i2 < other.integer_range.Count; i2++) { if (other.integer_range[i2] == null) { integer_range.Add(null); } else { rcl_interfaces.msg.IntegerRange newElement = rcl_interfaces.msg.IntegerRangePubSubType.Create(); rcl_interfaces.msg.IntegerRangePubSubType.Copy(other.integer_range[i2], newElement); integer_range.Add(newElement); } } } }
public static int getCdrSerializedSize(rcl_interfaces.msg.FloatingPointRange data, int current_alignment) { int initial_alignment = current_alignment; current_alignment += 8 + Halodi.CDR.CDRCommon.alignment(current_alignment, 8); current_alignment += 8 + Halodi.CDR.CDRCommon.alignment(current_alignment, 8); current_alignment += 8 + Halodi.CDR.CDRCommon.alignment(current_alignment, 8); return(current_alignment - initial_alignment); }
public static void Copy(rcl_interfaces.msg.FloatingPointRange src, rcl_interfaces.msg.FloatingPointRange target) { target.Set(src); }
public static int getCdrSerializedSize(rcl_interfaces.msg.FloatingPointRange data) { return(getCdrSerializedSize(data, 0)); }