MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / write_sample

Method write_sample

dds/DCPS/DataWriterImpl.cpp:3238–3254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3236}
3237
3238DDS::ReturnCode_t DataWriterImpl::write_sample(
3239 const Sample& sample,
3240 DDS::InstanceHandle_t handle,
3241 const DDS::Time_t& source_timestamp,
3242 GUIDSeq* filter_out)
3243{
3244 Message_Block_Ptr serialized(serialize_sample(sample));
3245 if (!serialized) {
3246 if (log_level >= LogLevel::Notice) {
3247 ACE_ERROR((LM_NOTICE, "(%P|%t) NOTICE: DataWriterImpl::write_sample: "
3248 "failed to serialize sample\n"));
3249 }
3250 return DDS::RETCODE_ERROR;
3251 }
3252
3253 return write(OPENDDS_MOVE_NS::move(serialized), handle, source_timestamp, filter_out, sample.native_data());
3254}
3255
3256} // namespace DCPS
3257} // namespace OpenDDS

Callers

nothing calls this directly

Calls 3

moveFunction · 0.85
native_dataMethod · 0.80
writeFunction · 0.70

Tested by

no test coverage detected