25 #include "goby/moos/moos_header.h" 34 static void serialize(
const CMOOSMsg& const_msg, std::string* data)
39 int serialized_size = msg.GetSizeInBytesWhenSerialised();
40 data->resize(serialized_size);
42 msg.Serialize(reinterpret_cast<unsigned char*>(&(*data)[0]), serialized_size);
43 data->resize(serialized_size);
46 static void parse(
CMOOSMsg* msg, std::string data)
48 msg->Serialize(reinterpret_cast<unsigned char*>(&data[0]), data.size(),
false);
The global namespace for the Goby project.