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