27 #ifndef HYPERTABLE_BLOCKCOMPRESSIONCODECZLIB_H
28 #define HYPERTABLE_BLOCKCOMPRESSIONCODECZLIB_H
135 #endif // HYPERTABLE_BLOCKCOMPRESSIONCODECZLIB_H
bool m_deflate_initialized
Flag indicating that deflate state has been initialized.
z_stream m_stream_deflate
Deflate state.
bool m_inflate_initialized
Flag indicating that inflate state has been initialized.
virtual void deflate(const DynamicBuffer &input, DynamicBuffer &output, BlockHeader &header, size_t reserve=0)
Compresses a buffer using the ZLIB algorithm.
int m_level
Compression level.
Declarations for BlockCompressionCodec.
virtual ~BlockCompressionCodecZlib()
virtual void inflate(const DynamicBuffer &input, DynamicBuffer &output, BlockHeader &header)
Decompresses a buffer compressed with the ZLIB algorithm.
A dynamic, resizable and reference counted memory buffer.
std::vector< String > Args
Compression codec argument vector.
Block compressor that uses the ZLIB algorithm.
z_stream m_stream_inflate
Inflate state.
virtual int get_type()
Returns enum value representing compression type ZLIB.
virtual void set_args(const Args &args)
Sets arguments to control compression behavior.
BlockCompressionCodecZlib(const Args &args)
Abstract base class for block compression codecs.