| 104 | // append given segment to buffer ptr |
| 105 | |
| 106 | unsigned putSegment(unsigned char*& ptr, const char* testData) |
| 107 | { |
| 108 | ptr = align(ptr, IBatch::BLOB_SEGHDR_ALIGN); |
| 109 | unsigned short l = strlen(testData); |
| 110 | memcpy(ptr, &l, sizeof l); |
| 111 | ptr += sizeof l; |
| 112 | memcpy(ptr, testData, l); |
| 113 | ptr += l; |
| 114 | return align(l + sizeof l, IBatch::BLOB_SEGHDR_ALIGN); |
| 115 | } |
| 116 | |
| 117 | // batch info printer - prints what we know about batch |
| 118 |
no test coverage detected