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

Method obtain_buffer_for_control

dds/DCPS/WriteDataContainer.cpp:1118–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116}
1117
1118DDS::ReturnCode_t
1119WriteDataContainer::obtain_buffer_for_control(DataSampleElement*& element)
1120{
1121 DBG_ENTRY_LVL("WriteDataContainer","obtain_buffer_for_control", 6);
1122
1123 ACE_NEW_MALLOC_RETURN(
1124 element,
1125 static_cast<DataSampleElement*>(
1126 sample_list_element_allocator_.malloc(
1127 sizeof(DataSampleElement))),
1128 DataSampleElement(publication_id_,
1129 this->writer_,
1130 PublicationInstance_rch()),
1131 DDS::RETCODE_ERROR);
1132
1133 return DDS::RETCODE_OK;
1134}
1135
1136DDS::ReturnCode_t
1137WriteDataContainer::obtain_buffer(DataSampleElement*& element,

Callers 5

send_request_ackMethod · 0.80
register_instance_iMethod · 0.80
unregister_instance_iMethod · 0.80
disposeMethod · 0.80

Calls 2

DataSampleElementClass · 0.70
mallocMethod · 0.45

Tested by

no test coverage detected