#include <DeflateOutputStreamBuffer.h>
|
static unsigned long | crctable [256] |
|
static const unsigned int | inSize = 1000 |
|
static const unsigned int | outSize = 1000 |
|
Definition at line 20 of file DeflateOutputStreamBuffer.h.
◆ DeflateOutputStreamBuffer()
cheprep::DeflateOutputStreamBuffer::DeflateOutputStreamBuffer |
( |
std::streambuf * |
buffer | ) |
|
Definition at line 80 of file DeflateOutputStreamBuffer.cc.
84 #ifndef CHEPREP_NO_ZLIB 88 #endif // CHEPREP_NO_ZLIB 91 #ifndef CHEPREP_NO_ZLIB 99 #endif // CHEPREP_NO_ZLIB
struct internal_state FAR * state
static const unsigned int outSize
static const unsigned int inSize
◆ ~DeflateOutputStreamBuffer()
cheprep::DeflateOutputStreamBuffer::~DeflateOutputStreamBuffer |
( |
| ) |
|
|
virtual |
◆ finish()
void cheprep::DeflateOutputStreamBuffer::finish |
( |
| ) |
|
Definition at line 129 of file DeflateOutputStreamBuffer.cc.
131 #ifndef CHEPREP_NO_ZLIB 140 while ( err ==
Z_OK ) {
150 cerr <<
"ERROR: deflation failed" << endl;
154 cerr <<
"ERROR: deflateEnd failed" << endl;
159 #endif // CHEPREP_NO_ZLIB int ZEXPORT deflateEnd(z_streamp strm)
static const unsigned int outSize
int ZEXPORT deflate(z_streamp strm, int flush)
◆ flushOut()
bool cheprep::DeflateOutputStreamBuffer::flushOut |
( |
| ) |
|
|
protected |
◆ getCRC()
unsigned int cheprep::DeflateOutputStreamBuffer::getCRC |
( |
| ) |
|
|
inlineprotected |
◆ getSize()
unsigned int cheprep::DeflateOutputStreamBuffer::getSize |
( |
| ) |
|
|
inlineprotected |
◆ init()
void cheprep::DeflateOutputStreamBuffer::init |
( |
bool |
compress | ) |
|
Definition at line 103 of file DeflateOutputStreamBuffer.cc.
115 cerr <<
"ERROR: deflateInit2 failed" << endl;
123 #endif // CHEPREP_NO_ZLIB
#define deflateInit2(strm, level, method, windowBits, memLevel, strategy)
static const unsigned int inSize
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
#define Z_DEFAULT_STRATEGY
◆ overflow()
int cheprep::DeflateOutputStreamBuffer::overflow |
( |
int |
c = EOF | ) |
|
|
protected |
Definition at line 172 of file DeflateOutputStreamBuffer.cc.
174 #ifndef CHEPREP_NO_ZLIB 210 cerr <<
"ERROR: deflation failed" << endl;
221 #endif // CHEPREP_NO_ZLIB 227 #ifndef CHEPREP_NO_ZLIB 229 #endif // CHEPREP_NO_ZLIB
static unsigned long crctable[256]
static const unsigned int outSize
static const unsigned int inSize
int ZEXPORT deflate(z_streamp strm, int flush)
◆ pos()
std::streampos cheprep::DeflateOutputStreamBuffer::pos |
( |
| ) |
|
|
inlineprotected |
◆ putS()
void cheprep::DeflateOutputStreamBuffer::putS |
( |
const std::string |
s | ) |
|
|
inlineprotected |
◆ putUB()
void cheprep::DeflateOutputStreamBuffer::putUB |
( |
unsigned char |
ub | ) |
|
|
inlineprotected |
◆ putUI()
void cheprep::DeflateOutputStreamBuffer::putUI |
( |
unsigned int |
ui | ) |
|
|
inlineprotected |
Definition at line 39 of file DeflateOutputStreamBuffer.h.
40 unsigned char* ucp =
reinterpret_cast<unsigned char *
>(&ui);
41 unsigned int i = (
static_cast<unsigned int>(ucp[ 3 ]) << 24) +
42 (
static_cast<unsigned int>(ucp[ 2 ]) << 16) +
43 (
static_cast<unsigned int>(ucp[ 1 ]) << 8 ) +
44 (
static_cast<unsigned int>(ucp[ 0 ]));
45 buffer->sputn(reinterpret_cast<char *>(&i),
sizeof(
unsigned int));
◆ putUS()
void cheprep::DeflateOutputStreamBuffer::putUS |
( |
unsigned short |
us | ) |
|
|
inlineprotected |
Definition at line 48 of file DeflateOutputStreamBuffer.h.
49 unsigned char* ucp =
reinterpret_cast<unsigned char *
>(&us);
50 unsigned short s = (
static_cast<unsigned short>(ucp[ 1 ]) << 8 ) +
51 (
static_cast<unsigned short>(ucp[ 0 ]));
52 buffer->sputn(reinterpret_cast<char *>(&s),
sizeof(
unsigned short));
◆ buffer
std::streambuf* cheprep::DeflateOutputStreamBuffer::buffer |
|
private |
◆ crc
unsigned int cheprep::DeflateOutputStreamBuffer::crc |
|
private |
◆ crctable
unsigned long cheprep::DeflateOutputStreamBuffer::crctable |
|
staticprivate |
◆ in
std::vector<char> cheprep::DeflateOutputStreamBuffer::in |
|
private |
◆ inSize
const unsigned int cheprep::DeflateOutputStreamBuffer::inSize = 1000 |
|
staticprivate |
◆ out
std::vector<char> cheprep::DeflateOutputStreamBuffer::out |
|
private |
◆ outSize
const unsigned int cheprep::DeflateOutputStreamBuffer::outSize = 1000 |
|
staticprivate |
◆ size
unsigned int cheprep::DeflateOutputStreamBuffer::size |
|
private |
◆ zStream
z_stream cheprep::DeflateOutputStreamBuffer::zStream |
|
private |
◆ zStreamOpen
bool cheprep::DeflateOutputStreamBuffer::zStreamOpen |
|
private |
The documentation for this class was generated from the following files: