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

Function getchain

tests/DCPS/Serializer/SerializerTest.cpp:344–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344ACE_Message_Block*
345getchain(size_t blocks, const int* defs)
346{
347 //std::cout << "Creating a chain with " << blocks << " blocks." << std::endl;
348
349 ACE_Message_Block* head = 0;
350 ACE_Message_Block* current = 0;
351
352 for (size_t i = 0; i < blocks; ++i) {
353 //std::cout << "Creating new block with " << defs[i] << " bytes." << std::endl;
354 ACE_Message_Block* b = new ACE_Message_Block(defs[i]);
355 if (head) {
356 current->cont(b);
357 } else {
358 head = b;
359 }
360 current = b;
361 }
362 return head;
363}
364
365void
366displayChain(ACE_Message_Block* chain)

Callers 2

runTestFunction · 0.85
runOverrunTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected