Function dds_loan_sample

Function Documentation

dds_return_t dds_loan_sample(dds_entity_t writer, void **sample)

Loan a sample from the writer.

Note

This function is to be used with dds_write to publish the loaned sample.

Note

The function can only be used if dds_is_loan_available is true for the writer.

Parameters
  • writer[in] the writer to loan the buffer from

  • sample[out] the loaned sample

Returns

DDS_RETCODE_OK if successful, DDS_RETCODE_ERROR otherwise