30 ZStream(Bytef*
input, std::size_t inputSize, Bytef* output, std::size_t outputSize)
40 throw std::runtime_error(std::string(
"compression failure: ")+(msg? msg:
""));
46 template <
class I,
class O>
49 (Bytef*)output.data(), output.size())
70 next_out=(Bytef*)
output.data();
78 while ((err=::
inflate(
this,Z_SYNC_FLUSH))==Z_OK)
82 next_out=(Bytef*)(
output.data())+total_out;
83 avail_out=
output.size()-total_out;
90 throw std::runtime_error(std::string(
"compression failure: ")+(msg? msg:
""));
105 next_out=(Bytef*)
output.data();
107 if (inflateInit2(
this,-MAX_WBITS)!=Z_OK)
throwError();
113 while ((err=::
inflate(
this,Z_SYNC_FLUSH))==Z_OK)
117 next_out=(Bytef*)(
output.data())+total_out;
118 avail_out=
output.size()-total_out;
125 throw std::runtime_error(std::string(
"compression failure: ")+(msg? msg:
""));
130 #include "zStream.cd"
InflateZStream(const I &input)
ZStream(Bytef *input, std::size_t inputSize, Bytef *output, std::size_t outputSize)
Creation and access to the minskyTCL_obj object, which has code to record whenever Minsky's state cha...
DeflateZStream(const I &input, O &output)
InflateFileZStream(const I &input)