24#ifndef GROUP_REPLICATION_COMPRESSION_INCLUDE
25#define GROUP_REPLICATION_COMPRESSION_INCLUDE
Definition: gr_compression.h:34
std::pair< unsigned char *, std::size_t > allocate_and_get_buffer()
Definition: gr_compression.cc:136
~GR_compress()
Definition: gr_compression.cc:69
size_t m_compressed_data_size
The compressed data size.
Definition: gr_compression.h:140
Managed_buffer_sequence_t::Char_t Char_t
Definition: gr_compression.h:40
size_t m_uncompressed_data_size
The uncompressed data size.
Definition: gr_compression.h:137
enum_compression_type
Compression Type.
Definition: gr_compression.h:45
Managed_buffer_sequence_t m_managed_buffer_sequence
The buffer holding compressed data.
Definition: gr_compression.h:134
enum_compression_error
Compression Error.
Definition: gr_compression.h:55
@ ER_COMPRESSION_INIT_FAILURE
@ ER_COMPRESSION_EXCEEDS_MAX_BUFFER_SIZE
@ ER_COMPRESSION_OUT_OF_MEMORY
@ ER_COMPRESSION_TYPE_UNKOWN
Compressor_t * m_compressor
ZSTD compressor class object.
Definition: gr_compression.h:121
enum_compression_type m_compression_type
The compression type.
Definition: gr_compression.h:124
size_t get_uncompressed_data_size()
Definition: gr_compression.cc:162
std::string m_compressor_name
The compression library name.
Definition: gr_compression.h:128
GR_compress::enum_compression_error compress(unsigned char *data, size_t length)
This shall compress the buffer provided and put the compressed payload into the m_managed_buffer_sequ...
Definition: gr_compression.cc:76
GR_compress(enum_compression_type compression_type=enum_compression_type::ZSTD_COMPRESSION)
Definition: gr_compression.cc:33
Compress_status_t m_status
The compression status.
Definition: gr_compression.h:131
Abstract base class for compressors.
Definition: compressor.h:80
Owned, non-contiguous, growable memory buffer.
Definition: managed_buffer_sequence.h:115
typename Buffer_sequence_view_t::Char_t Char_t
Definition: rw_buffer_sequence.h:110
Container class that provides a contiguous memory buffer to the caller, which the caller can request ...
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
Grow_status
Error statuses for classes that use Grow_calculator.
Definition: grow_status.h:38