MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / MySQLPacketPayloadReadBuffer

Class MySQLPacketPayloadReadBuffer

src/IO/MySQLPacketPayloadReadBuffer.h:11–30  ·  view source on GitHub ↗

Reading packets. * Internally, it calls (if no more data) next() method of the underlying ReadBufferFromPocoSocket, and sets the working buffer to the rest part of the current packet payload. */

Source from the content-addressed store, hash-verified

9 * Internally, it calls (if no more data) next() method of the underlying ReadBufferFromPocoSocket, and sets the working buffer to the rest part of the current packet payload.
10 */
11class MySQLPacketPayloadReadBuffer : public ReadBuffer
12{
13private:
14 ReadBuffer & in;
15 uint8_t & sequence_id;
16
17 bool has_read_header = false;
18
19 // Size of packet which is being read now.
20 size_t payload_length = 0;
21
22 // Offset in packet payload.
23 size_t offset = 0;
24
25protected:
26 bool nextImpl() override;
27
28public:
29 MySQLPacketPayloadReadBuffer(ReadBuffer & in_, uint8_t & sequence_id_);
30};
31
32}
33

Callers 1

getPayloadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected