예제 #1
0
 public override void deserialize(MemoryStream stream, builtin_interfaces.msg.Duration data)
 {
     using (BinaryReader reader = new BinaryReader(stream))
     {
         Halodi.CDR.CDRDeserializer cdr = new Halodi.CDR.CDRDeserializer(reader);
         read(data, cdr);
     }
 }
예제 #2
0
 public override void serialize(builtin_interfaces.msg.Duration data, MemoryStream stream)
 {
     using (BinaryWriter writer = new BinaryWriter(stream))
     {
         Halodi.CDR.CDRSerializer cdr = new Halodi.CDR.CDRSerializer(writer);
         write(data, cdr);
     }
 }
예제 #3
0
        public static int getCdrSerializedSize(builtin_interfaces.msg.Duration data, int current_alignment)
        {
            int initial_alignment = current_alignment;

            current_alignment += 4 + Halodi.CDR.CDRCommon.alignment(current_alignment, 4);


            current_alignment += 4 + Halodi.CDR.CDRCommon.alignment(current_alignment, 4);



            return(current_alignment - initial_alignment);
        }
예제 #4
0
 public static void Copy(builtin_interfaces.msg.Duration src, builtin_interfaces.msg.Duration target)
 {
     target.Set(src);
 }
예제 #5
0
        public static void read(builtin_interfaces.msg.Duration data, Halodi.CDR.CDRDeserializer cdr)
        {
            data.sec = cdr.read_type_2();

            data.nanosec = cdr.read_type_4();
        }
예제 #6
0
        public static void write(builtin_interfaces.msg.Duration data, Halodi.CDR.CDRSerializer cdr)
        {
            cdr.write_type_2(data.sec);

            cdr.write_type_4(data.nanosec);
        }
예제 #7
0
 public static int getCdrSerializedSize(builtin_interfaces.msg.Duration data)
 {
     return(getCdrSerializedSize(data, 0));
 }