MySQL  8.0.22
Source Code Documentation
binary_log::transaction::compression::None_dec Class Reference

This decompressor does not decompress. More...

#include <none.h>

Inheritance diagram for binary_log::transaction::compression::None_dec:
binary_log::transaction::compression::Decompressor binary_log::transaction::compression::Base_compressor_decompressor

Public Member Functions

 None_dec ()=default
 
type compression_type_code () override
 Shall return the compression type code. More...
 
bool open () override
 No op member function. More...
 
std::tuple< std::size_t, booldecompress (const unsigned char *data, size_t length) override
 This member function shall simply copy the input buffer to the output buffer. More...
 
bool close () override
 No op member function. More...
 
- Public Member Functions inherited from binary_log::transaction::compression::Base_compressor_decompressor
 Base_compressor_decompressor ()
 
virtual ~Base_compressor_decompressor ()
 
virtual size_t size ()
 This member function returns the size of the compressed/decompressed data. More...
 
virtual std::size_t capacity ()
 This member function returns the capacity of the buffer. More...
 
virtual bool set_buffer (unsigned char *buffer, std::size_t capacity)
 This member function SHALL set the buffer into which the compressor or decompressor shall write the data after it processes the stream. More...
 
virtual std::tuple< unsigned char *, std::size_t, std::size_t > get_buffer ()
 This member function SHALL return the buffer, the size of its data and its capacity. More...
 
virtual bool reserve (std::size_t bytes)
 This member function expands the buffer by a number of bytes. More...
 

Private Member Functions

None_decoperator= (const None_dec &rhs)=delete
 
 None_dec (const None_dec &)=delete
 

Additional Inherited Members

- Protected Attributes inherited from binary_log::transaction::compression::Base_compressor_decompressor
unsigned char * m_buffer {nullptr}
 The pointer to the buffer holding the data to compress/decompress. More...
 
std::size_t m_buffer_capacity {0}
 The buffer capacity. More...
 
unsigned char * m_buffer_cursor {nullptr}
 A cursor over the buffer. More...
 

Detailed Description

This decompressor does not decompress.

The only thing that it does is to copy the data from the input to the output buffer.

Constructor & Destructor Documentation

◆ None_dec() [1/2]

binary_log::transaction::compression::None_dec::None_dec ( const None_dec )
privatedelete

◆ None_dec() [2/2]

binary_log::transaction::compression::None_dec::None_dec ( )
default

Member Function Documentation

◆ close()

bool binary_log::transaction::compression::None_dec::close ( )
overridevirtual

No op member function.

Returns
false on success, true otherwise.

Implements binary_log::transaction::compression::Base_compressor_decompressor.

◆ compression_type_code()

type binary_log::transaction::compression::None_dec::compression_type_code ( )
overridevirtual

Shall return the compression type code.

Returns
the compression type code.

Implements binary_log::transaction::compression::Base_compressor_decompressor.

◆ decompress()

std::tuple< std::size_t, bool > binary_log::transaction::compression::None_dec::decompress ( const unsigned char *  data,
size_t  length 
)
overridevirtual

This member function shall simply copy the input buffer to the output buffer.

It shall grow the output buffer if needed.

Parameters
dataa pointer to the buffer holding the data to decompress
lengththe size of the data to decompress.
Returns
false on success, true otherwise.

Implements binary_log::transaction::compression::Decompressor.

◆ open()

bool binary_log::transaction::compression::None_dec::open ( )
overridevirtual

No op member function.

Returns
false on success, true otherwise.

Implements binary_log::transaction::compression::Base_compressor_decompressor.

◆ operator=()

None_dec& binary_log::transaction::compression::None_dec::operator= ( const None_dec rhs)
privatedelete

The documentation for this class was generated from the following files: