| 14 | { |
| 15 | |
| 16 | void IMySQLWritePacket::writePayload(WriteBuffer & buffer, uint8_t & sequence_id) const |
| 17 | { |
| 18 | MySQLPacketPayloadWriteBuffer buf(buffer, getPayloadSize(), sequence_id); |
| 19 | writePayloadImpl(buf); |
| 20 | buf.finalize(); |
| 21 | if (buf.remainingPayloadSize()) |
| 22 | { |
| 23 | throw Exception(ErrorCodes::LOGICAL_ERROR, "Incomplete payload. Written {} bytes, expected {} bytes.", |
| 24 | getPayloadSize() - buf.remainingPayloadSize(), getPayloadSize()); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | size_t getLengthEncodedNumberSize(uint64_t x) |
| 29 | { |
no test coverage detected