3 #include "Alignment/Geners/interface/BZ2Handle.hh" 6 BZ2InflateHandle::BZ2InflateHandle(bz_stream& strm)
9 strm_->bzalloc =
nullptr;
10 strm_->bzfree =
nullptr;
11 strm_->opaque =
nullptr;
13 strm_->next_in =
nullptr;
14 assert(BZ2_bzDecompressInit(strm_, 0, 0) == BZ_OK);
17 BZ2InflateHandle::~BZ2InflateHandle()
19 assert(BZ2_bzDecompressEnd(strm_) == BZ_OK);
22 BZ2DeflateHandle::BZ2DeflateHandle(bz_stream& strm)
25 strm_->bzalloc =
nullptr;
26 strm_->bzfree =
nullptr;
27 strm_->opaque =
nullptr;
29 strm_->next_in =
nullptr;
30 assert(BZ2_bzCompressInit(strm_, 9, 0, 0) == BZ_OK);
33 BZ2DeflateHandle::~BZ2DeflateHandle()
35 assert(BZ2_bzCompressEnd(strm_) == BZ_OK);