Minsky
minsky::DeflateZStream Struct Reference

#include <zStream.h>

Inheritance diagram for minsky::DeflateZStream:
Inheritance graph
Collaboration diagram for minsky::DeflateZStream:
Collaboration graph

Public Member Functions

template<class I , class O >
 DeflateZStream (const I &input, O &output)
 
 ~DeflateZStream ()
 
void deflate ()
 
- Public Member Functions inherited from minsky::ZStream
 ZStream (Bytef *input, std::size_t inputSize, Bytef *output, std::size_t outputSize)
 
void throwError () const
 

Detailed Description

Definition at line 44 of file zStream.h.

Constructor & Destructor Documentation

◆ DeflateZStream()

template<class I , class O >
minsky::DeflateZStream::DeflateZStream ( const I &  input,
O &  output 
)
inline

Definition at line 47 of file zStream.h.

References minsky::ZStream::throwError().

47  :
48  ZStream((Bytef*)input.data(), input.size(),
49  (Bytef*)output.data(), output.size())
50  {
51  if (deflateInit(this,9)!=Z_OK) throwError();
52  }
Definition: input.py:1
ZStream(Bytef *input, std::size_t inputSize, Bytef *output, std::size_t outputSize)
Definition: zStream.h:30
void throwError() const
Definition: zStream.h:39
Here is the call graph for this function:

◆ ~DeflateZStream()

minsky::DeflateZStream::~DeflateZStream ( )
inline

Definition at line 53 of file zStream.h.

53 {deflateEnd(this);}

Member Function Documentation

◆ deflate()

void minsky::DeflateZStream::deflate ( )
inline

Definition at line 54 of file zStream.h.

References minsky::ZStream::throwError().

54  {
55  if (::deflate(this,Z_FINISH)!=Z_STREAM_END) throwError();
56  }
void throwError() const
Definition: zStream.h:39
Here is the call graph for this function:

The documentation for this struct was generated from the following file: