Function mrpt::serialization::OctetVectorToObject

Function Documentation

void mrpt::serialization::OctetVectorToObject(const std::vector<uint8_t> &in_data, CSerializable::Ptr &obj)

Converts back (de-serializes) a sequence of binary data into a MRPT object, without prior information about the object’s class.

See also

ObjectToOctetVector, StringToObject

Parameters:
  • in_data – The serialized input data representing the object.

  • obj – The newly created object will be stored in this smart pointer.

Throws:

None – On any internal exception, this function returns a nullptr pointer.