| 342 | } |
| 343 | |
| 344 | ACE_Message_Block* |
| 345 | getchain(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 | |
| 365 | void |
| 366 | displayChain(ACE_Message_Block* chain) |
no outgoing calls
no test coverage detected