Function dds_qget_userdata

Function Documentation

bool dds_qget_userdata(const dds_qos_t *qos, void **value, size_t *sz)

Get the userdata from a qos structure.

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

  • value[inout] - Pointer that will store the userdata. If sz = 0, then a null pointer, else it is a pointer to an allocated buffer of sz+1 bytes where the last byte is always 0

  • sz[inout] - Pointer that will store the size of userdata

Returns

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