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

Method init

dds/DCPS/DataDurabilityCache.cpp:207–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void
208OpenDDS::DCPS::DataDurabilityCache::sample_data_type::init
209(const ACE_Message_Block * data)
210{
211 this->length_ = data->total_length();
212
213 ACE_ALLOCATOR(this->sample_,
214 static_cast<char *>(
215 this->allocator_->malloc(this->length_)));
216
217 char * buf = this->sample_;
218
219 for (ACE_Message_Block const * i = data;
220 i != 0;
221 i = i->cont()) {
222 ACE_OS::memcpy(buf, i->rd_ptr(), i->length());
223 buf += i->length();
224 }
225}
226
227OpenDDS::DCPS::DataDurabilityCache::sample_data_type::sample_data_type(
228 sample_data_type const & rhs)

Callers

nothing calls this directly

Calls 15

sample_data_typeClass · 0.85
begin_dirsMethod · 0.80
end_dirsMethod · 0.80
begin_filesMethod · 0.80
end_filesMethod · 0.80
enqueue_tailMethod · 0.80
timerMethod · 0.80
mallocMethod · 0.45
lengthMethod · 0.45
getMethod · 0.45
nameMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected