5 #include "Alignment/Geners/interface/ZlibHandle.hh" 8 ZlibInflateHandle::ZlibInflateHandle() {
9 strm_ =
new z_stream_s();
10 strm_->zalloc = Z_NULL;
11 strm_->zfree = Z_NULL;
12 strm_->opaque = Z_NULL;
14 strm_->next_in = Z_NULL;
15 assert(inflateInit(strm_) == Z_OK);
18 ZlibInflateHandle::~ZlibInflateHandle() {
23 ZlibDeflateHandle::ZlibDeflateHandle(
const int lev) : level_(lev) {
24 strm_ =
new z_stream_s();
25 strm_->zalloc = Z_NULL;
26 strm_->zfree = Z_NULL;
27 strm_->opaque = Z_NULL;
29 strm_->next_in = Z_NULL;
30 assert(deflateInit(strm_, lev) == Z_OK);
33 ZlibDeflateHandle::~ZlibDeflateHandle() {