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

Function putBlob

examples/interfaces/11.batch.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91// append given blob to buffer ptr
92
93static void putBlob(unsigned char*& ptr, const void* from, unsigned size, unsigned alignment, ISC_QUAD* id)
94{
95 unsigned* sizePtr = putBlobHdr(ptr, alignment, id, 0, NULL);
96 memcpy(ptr, from, size);
97 *sizePtr += size;
98 ptr += size;
99
100 ptr = align(ptr, alignment);
101}
102
103
104// append given segment to buffer ptr

Callers 1

mainFunction · 0.85

Calls 2

putBlobHdrFunction · 0.85
alignFunction · 0.70

Tested by

no test coverage detected