24#ifndef GROUP_REPLICATION_DECOMPRESSION_INCLUDE
25#define GROUP_REPLICATION_DECOMPRESSION_INCLUDE
98 const unsigned char *compressed_data,
size_t compressed_data_length,
107 std::pair<unsigned char *, std::size_t>
get_buffer();
enum_compression_type
Compression Type.
Definition: gr_compression.h:45
Definition: gr_decompression.h:36
Managed_buffer_t m_managed_buffer
The buffer holding decompressed data.
Definition: gr_decompression.h:124
GR_decompress::enum_decompression_error decompress(const unsigned char *compressed_data, size_t compressed_data_length, size_t output_size)
This shall decompress the buffer provided and put the decompressed payload into the output buffer i....
Definition: gr_decompression.cc:78
std::string m_compressor_name
The compression library name.
Definition: gr_decompression.h:118
GR_compress::enum_compression_type m_compression_type
The compression type.
Definition: gr_decompression.h:114
~GR_decompress()
Definition: gr_decompression.cc:71
std::pair< unsigned char *, std::size_t > get_buffer()
Definition: gr_decompression.cc:176
Decompress_status_t m_status
The compression status.
Definition: gr_decompression.h:121
GR_decompress(GR_compress::enum_compression_type compression_type=GR_compress::enum_compression_type::ZSTD_COMPRESSION)
Definition: gr_decompression.cc:32
Decompressor_t * m_decompressor
ZSTD decompressor class object.
Definition: gr_decompression.h:111
enum_decompression_error
Decompression Error.
Definition: gr_decompression.h:46
@ ER_DECOMPRESSION_INIT_FAILURE
@ ER_DECOMPRESSION_EXCEEDS_MAX_BUFFER_SIZE
@ ER_DECOMPRESSION_CORRUPTED
@ ER_DECOMPRESSION_OUT_OF_MEMORY
@ ER_DECOMPRESSION_TRUNCATED
@ ER_COMPRESSION_TYPE_UNKOWN
Abstract base class for decompressors.
Definition: decompressor.h:57
mysql::containers::buffers::Managed_buffer< Char_t > Managed_buffer_t
Definition: decompressor.h:61
Owned, growable, contiguous memory buffer.
Definition: managed_buffer.h:108
Container class that provides a contiguous memory buffer to the caller, which the caller can request ...
Decompress_status
Definition: decompress_status.h:32