25 #ifndef GOBY_MOOS_MOOS_SERIALIZER_H
26 #define GOBY_MOOS_MOOS_SERIALIZER_H
44 int serialized_size =
msg.GetSizeInBytesWhenSerialised();
45 data->resize(serialized_size);
47 msg.Serialize(
reinterpret_cast<unsigned char*
>(&(*data)[0]), serialized_size);
48 data->resize(serialized_size);
53 msg->Serialize(
reinterpret_cast<unsigned char*
>(&data[0]), data.size(),
false);