Complete the stuffing of a piece of blr by going back and inserting the length.
| 97 | |
| 98 | // Complete the stuffing of a piece of blr by going back and inserting the length. |
| 99 | void 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 | |
| 115 | void BlrWriter::raiseError(const Arg::StatusVector& vector) |
| 116 | { |
nothing calls this directly
no test coverage detected