Function rmw_dds_common::encode_type_hash_for_user_data_qos

Function Documentation

rmw_ret_t rmw_dds_common::encode_type_hash_for_user_data_qos(const rosidl_type_hash_t &type_hash, std::string &string_out)

Encode type hash as “typehash=hash_string;” for use in USER_DATA QoS.

Parameters:
  • type_hash[in] Type hash value to encode

  • string_out[out] On success, will be set to “typehash=stringified_type_hash;” If type_hash’s version is 0, string_out will be set to empty

Returns:

RMW_RET_OK on success, including empty string for unset version

Returns:

RMW_RET_BAD_ALLOC if memory allocation fails