Function mrpt::serialization::ObjectToOctetVector

Function Documentation

void mrpt::serialization::ObjectToOctetVector(const CSerializable *o, std::vector<uint8_t> &out_vector)

Converts (serializes) an MRPT object into an array of bytes.

See also

OctetVectorToObject, ObjectToString

Parameters:
  • o – The object to be serialized.

  • out_vector – The vector which at return will contain the data. Size will be set automatically.