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

Method endBlr

src/common/classes/BlrWriter.cpp:99–113  ·  view source on GitHub ↗

Complete the stuffing of a piece of blr by going back and inserting the length.

Source from the content-addressed store, hash-verified

97
98// Complete the stuffing of a piece of blr by going back and inserting the length.
99void BlrWriter::endBlr()
100{
101 appendUChar(blr_eoc);
102
103 // go back and stuff in the proper length
104
105 UCHAR* blr_base = &blrData[baseOffset];
106 const ULONG length = (blrData.getCount() - baseOffset) - 2;
107
108 if (length > 0xFFFF)
109 raiseError(Arg::Gds(isc_too_big_blr) << Arg::Num(length) << Arg::Num(0xFFFF));
110
111 *blr_base++ = (UCHAR) length;
112 *blr_base = (UCHAR) (length >> 8);
113}
114
115void BlrWriter::raiseError(const Arg::StatusVector& vector)
116{

Callers

nothing calls this directly

Calls 4

GdsClass · 0.85
NumClass · 0.85
raiseErrorFunction · 0.50
getCountMethod · 0.45

Tested by

no test coverage detected