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

Method readPayloadImpl

src/Core/MySQL/PacketsGeneric.cpp:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14static const size_t MYSQL_ERRMSG_SIZE = 512;
15
16void SSLRequest::readPayloadImpl(ReadBuffer & buf)
17{
18 buf.readStrict(reinterpret_cast<char *>(&capability_flags), 4);
19 buf.readStrict(reinterpret_cast<char *>(&max_packet_size), 4);
20 buf.readStrict(reinterpret_cast<char *>(&character_set), 1);
21}
22
23OKPacket::OKPacket(uint32_t capabilities_)
24 : header(0x00), capabilities(capabilities_), affected_rows(0x00), last_insert_id(0x00), status_flags(0x00)

Callers

nothing calls this directly

Calls 10

readLengthEncodedNumberFunction · 0.85
readLengthEncodedStringFunction · 0.85
readStringUntilEOFFunction · 0.85
readStringFunction · 0.85
readStrictMethod · 0.45
positionMethod · 0.45
ignoreMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected