Function rmw_dds_common::parse_type_hash_from_user_data

Function Documentation

rmw_ret_t rmw_dds_common::parse_type_hash_from_user_data(const uint8_t *user_data, size_t user_data_size, rosidl_type_hash_t &type_hash_out)

Parse USER_DATA “key=value;key=value;”” encoding, finding value of key “typehash”.

Parameters:
  • user_data[in] USER_DATA qos raw bytes

  • user_data_size[in] Length of user_data

  • type_hash_out[out] Filled with type hash data if found, or to zero value if key not found

Returns:

RMW_RET_OK if key parsed successfully, or if key not found

Returns:

RMW_RET_INVALID_ARGUMENT if user_data is null

Returns:

RMW_RET_ERROR if typehash key found, but value could not be parsed