22 #ifndef XAPIAN_INCLUDED_COMPRESSION_STREAM_H
23 #define XAPIAN_INCLUDED_COMPRESSION_STREAM_H
64 const char*
compress(
const char* buf,
size_t* p_size);
void lazy_alloc_inflate_zstream()
Allocate the zstream for inflating, if not already allocated.
bool decompress_chunk(const char *p, int len, std::string &buf)
Returns true if this was the final chunk.
CompressionStream(int compress_strategy_=Z_DEFAULT_STRATEGY)
z_stream * inflate_zstream
Zlib state object for inflating.
void lazy_alloc_deflate_zstream()
Allocate the zstream for deflating, if not already allocated.
const char * compress(const char *buf, size_t *p_size)
z_stream * deflate_zstream
Zlib state object for deflating.