24#ifndef LIBBINLOGEVENTS_COMPRESSION_NONE_DEC_H_
25#define LIBBINLOGEVENTS_COMPRESSION_NONE_DEC_H_
Abstract base class for decompressors.
Definition: decompressor.h:57
unsigned char Char_t
Definition: decompressor.h:59
mysqlns::buffer::Buffer_view< Char_t >::Size_t Size_t
Definition: decompressor.h:60
Decompressor subclass that only copies input to output without decompressing it.
Definition: none_dec.h:34
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 & operator=(const None_dec &)=delete
type do_get_type_code() const override
Definition: none_dec.cpp:30
~None_dec() override=default
const Char_t * m_input_data
Input data.
Definition: none_dec.h:63
None_dec(const None_dec &&)=delete
None_dec(const None_dec &)=delete
static constexpr type type_code
Definition: none_dec.h:38
void do_feed(const Char_t *input_data, Size_t input_size) override
Implement feed.
Definition: none_dec.cpp:38
Size_t m_input_position
Definition: none_dec.h:65
None_dec & operator=(const None_dec &&)=delete
void do_reset() override
Implement do_reset.
Definition: none_dec.cpp:32
Size_t m_input_size
Definition: none_dec.h:64
type
Definition: base.h:33
@ NONE
Definition: base.h:38
#define NODISCARD
The function attribute [[NODISCARD]] is a replacement for [[nodiscard]] to workaround a gcc bug.
Definition: nodiscard.h:47