Function dds_qget_data_representation

Function Documentation

bool dds_qget_data_representation(const dds_qos_t *qos, uint32_t *n, dds_data_representation_id_t **values)

Get the data representation qos policy value.

Returns the data representation values that are set in the provided QoS object and stores the number of values in out parameter ‘n’. In case the ‘values’ parameter is provided, this function will allocate a buffer that contains the data representation values, and set ‘values’ to point to this buffer. It is the responsibility of the caller to free the memory of this buffer.

Parameters
  • qos[in] - Pointer to a dds_qos_t structure storing the policy

  • n[inout] - Pointer that will store the number of data representation values

  • values[inout] - Pointer that will store the data representation values (optional)

Returns

- false iff any of the arguments is invalid or the qos is not present in the qos object