ClickHouse/src/IO/MySQLBinlogEventReadBuffer.h

29 lines
477 B
C++
Raw Normal View History

2020-09-15 12:28:42 +00:00
#pragma once
#include <IO/ReadBuffer.h>
namespace DB
{
class MySQLBinlogEventReadBuffer : public ReadBuffer
{
protected:
static const size_t CHECKSUM_CRC32_SIGNATURE_LENGTH = 4;
ReadBuffer & in;
size_t checksum_buff_size = 0;
size_t checksum_buff_limit = 0;
char checksum_buf[CHECKSUM_CRC32_SIGNATURE_LENGTH];
bool nextImpl() override;
public:
2020-09-16 03:13:17 +00:00
~MySQLBinlogEventReadBuffer() override;
2020-09-15 12:28:42 +00:00
MySQLBinlogEventReadBuffer(ReadBuffer & in_);
};
}