44 uint32_t avail_out = input.
fill() + 400;
58 if (len >= input.
fill()) {
80 const uint8_t *msg_ptr = input.
base;
81 size_t remaining = input.
fill();
83 header.
decode(&msg_ptr, &remaining);
87 "header zlength = %lu, actual = %lu",
94 "checksum mismatch header=%lx, computed=%lx",
qlz_state_compress m_compress
Compression state.
virtual void deflate(const DynamicBuffer &input, DynamicBuffer &output, BlockHeader &header, size_t reserve=0)
Compresses a buffer using the QUICKLZ algorithm.
uint8_t * ptr
Pointer to the end of the used part of the buffer.
A dynamic, resizable and reference counted memory buffer.
uint32_t fletcher32(const void *data8, size_t len8)
Compute fletcher32 checksum for arbitary data.
qlz_state_decompress m_decompress
Decompression state.
A dynamic, resizable memory buffer.
Logging routines and macros.
Compatibility Macros for C/C++.
Declarations for BlockCompressionCodecQuicklz.
Importing boost::thread and boost::thread_group into the Hypertable namespace.
virtual void inflate(const DynamicBuffer &input, DynamicBuffer &output, BlockHeader &header)
Decompresses a buffer compressed with the QUICKLZ algorithm.
#define HT_FATALF(msg,...)
long long int Lld
Shortcut for printf formats.
Implementation of checksum routines.
void clear()
Clears the buffer.
#define HT_THROWF(_code_, _fmt_,...)
uint8_t * base
Pointer to the allocated memory buffer.
size_t fill() const
Returns the size of the used portion.
A String class based on std::string.
long unsigned int Lu
Shortcut for printf formats.
Error codes, Exception handling, error logging.
void reserve(size_t len, bool nocopy=false)
Reserve space for additional data Will grow the space to exactly what's needed.