public override void deserialize(MemoryStream stream, std_msgs.msg.Byte data)
 {
     using (BinaryReader reader = new BinaryReader(stream))
     {
         Halodi.CDR.CDRDeserializer cdr = new Halodi.CDR.CDRDeserializer(reader);
         read(data, cdr);
     }
 }
 public override void serialize(std_msgs.msg.Byte data, MemoryStream stream)
 {
     using (BinaryWriter writer = new BinaryWriter(stream))
     {
         Halodi.CDR.CDRSerializer cdr = new Halodi.CDR.CDRSerializer(writer);
         write(data, cdr);
     }
 }
        public static int getCdrSerializedSize(std_msgs.msg.Byte data, int current_alignment)
        {
            int initial_alignment = current_alignment;

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



            return(current_alignment - initial_alignment);
        }
 public static void Copy(std_msgs.msg.Byte src, std_msgs.msg.Byte target)
 {
     target.Set(src);
 }
 public static void read(std_msgs.msg.Byte data, Halodi.CDR.CDRDeserializer cdr)
 {
     data.data = cdr.read_type_9();
 }
 public static void write(std_msgs.msg.Byte data, Halodi.CDR.CDRSerializer cdr)
 {
     cdr.write_type_9(data.data);
 }
 public static int getCdrSerializedSize(std_msgs.msg.Byte data)
 {
     return(getCdrSerializedSize(data, 0));
 }