24#ifndef MYSQL_BINLOG_EVENT_COMPRESSION_NONE_DEC_H
25#define MYSQL_BINLOG_EVENT_COMPRESSION_NONE_DEC_H
Abstract base class for decompressors.
Definition: decompressor.h:57
mysql::containers::buffers::Buffer_view< Char_t >::Size_t Size_t
Definition: decompressor.h:60
unsigned char Char_t
Definition: decompressor.h:59
Decompressor subclass that only copies input to output without decompressing it.
Definition: none_dec.h:34
type do_get_type_code() const override
Definition: none_dec.cpp:30
Size_t m_input_size
Definition: none_dec.h:64
Size_t m_input_position
Definition: none_dec.h:65
None_dec & operator=(const None_dec &&)=delete
std::pair< Decompress_status, Size_t > do_decompress(Char_t *out, Size_t output_size) override
Implement decompress.
Definition: none_dec.cpp:44
None_dec(const None_dec &)=delete
static constexpr type type_code
Definition: none_dec.h:38
~None_dec() override=default
const Char_t * m_input_data
Input data.
Definition: none_dec.h:63
None_dec & operator=(const None_dec &)=delete
void do_reset() override
Implement do_reset.
Definition: none_dec.cpp:32
void do_feed(const Char_t *input_data, Size_t input_size) override
Implement feed.
Definition: none_dec.cpp:38
None_dec(const None_dec &&)=delete
type
Definition: base.h:40
@ NONE
Definition: base.h:45
#define NODISCARD
The function attribute [[NODISCARD]] is a replacement for [[nodiscard]] to workaround a gcc bug.
Definition: nodiscard.h:47