MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / putSegment

Function putSegment

examples/interfaces/11.batch.cpp:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104// append given segment to buffer ptr
105
106unsigned 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

Callers 5

addBlobMethod · 0.85
appendBlobDataMethod · 0.85
addBlobMethod · 0.85
appendBlobDataMethod · 0.85
mainFunction · 0.85

Calls 1

alignFunction · 0.70

Tested by

no test coverage detected