Geant4.10
|
#include <DeflateOutputStreamBuffer.h>
Public Member Functions | |
DeflateOutputStreamBuffer (std::streambuf *buffer) | |
void | init (bool compress) |
void | finish () |
virtual | ~DeflateOutputStreamBuffer () |
Protected Member Functions | |
int | overflow (int c=EOF) |
bool | flushOut () |
void | putUI (unsigned int ui) |
void | putUS (unsigned short us) |
void | putUB (unsigned char ub) |
void | putS (const std::string s) |
std::streampos | pos () |
unsigned int | getSize () |
unsigned int | getCRC () |
Definition at line 20 of file DeflateOutputStreamBuffer.h.
cheprep::DeflateOutputStreamBuffer::DeflateOutputStreamBuffer | ( | std::streambuf * | buffer | ) |
Definition at line 80 of file DeflateOutputStreamBuffer.cc.
References z_stream_s::msg, z_stream_s::next_in, z_stream_s::next_out, z_stream_s::opaque, z_stream_s::state, Z_NULL, z_stream_s::zalloc, and z_stream_s::zfree.
|
virtual |
Definition at line 162 of file DeflateOutputStreamBuffer.cc.
void cheprep::DeflateOutputStreamBuffer::finish | ( | ) |
Definition at line 129 of file DeflateOutputStreamBuffer.cc.
References z_stream_s::avail_out, deflate(), deflateEnd(), flushOut(), z_stream_s::next_out, overflow(), Z_FINISH, Z_OK, and Z_STREAM_END.
Referenced by cheprep::GZIPOutputStreamBuffer::close(), and cheprep::ZipOutputStreamBuffer::closeEntry().
|
protected |
Definition at line 234 of file DeflateOutputStreamBuffer.cc.
References z_stream_s::avail_out, and z_stream_s::next_out.
Referenced by finish(), and overflow().
|
inlineprotected |
Definition at line 72 of file DeflateOutputStreamBuffer.h.
Referenced by cheprep::ZipOutputStreamBuffer::closeEntry().
|
inlineprotected |
Definition at line 68 of file DeflateOutputStreamBuffer.h.
Referenced by cheprep::ZipOutputStreamBuffer::closeEntry().
void cheprep::DeflateOutputStreamBuffer::init | ( | bool | compress | ) |
Definition at line 103 of file DeflateOutputStreamBuffer.cc.
References z_stream_s::avail_in, z_stream_s::avail_out, deflateInit2, z_stream_s::next_in, z_stream_s::next_out, Z_DEFAULT_STRATEGY, Z_DEFLATED, and Z_OK.
Referenced by cheprep::GZIPOutputStreamBuffer::GZIPOutputStreamBuffer(), and cheprep::ZipOutputStreamBuffer::putNextEntry().
Definition at line 172 of file DeflateOutputStreamBuffer.cc.
References z_stream_s::avail_in, z_stream_s::avail_out, test::c, deflate(), DO1, DO8, flushOut(), z_stream_s::next_in, z_stream_s::next_out, Z_NO_FLUSH, Z_OK, and Z_STREAM_END.
Referenced by finish(), cheprep::GZIPOutputStreamBuffer::overflow(), and cheprep::ZipOutputStreamBuffer::overflow().
|
inlineprotected |
Definition at line 63 of file DeflateOutputStreamBuffer.h.
Referenced by cheprep::ZipOutputStreamBuffer::close(), cheprep::ZipOutputStreamBuffer::closeEntry(), and cheprep::ZipOutputStreamBuffer::putNextEntry().
|
inlineprotected |
Definition at line 59 of file DeflateOutputStreamBuffer.h.
Referenced by cheprep::ZipOutputStreamBuffer::close(), and cheprep::ZipOutputStreamBuffer::putNextEntry().
|
inlineprotected |
Definition at line 55 of file DeflateOutputStreamBuffer.h.
Definition at line 39 of file DeflateOutputStreamBuffer.h.
Referenced by cheprep::ZipOutputStreamBuffer::close(), cheprep::ZipOutputStreamBuffer::closeEntry(), and cheprep::ZipOutputStreamBuffer::putNextEntry().
|
inlineprotected |
Definition at line 48 of file DeflateOutputStreamBuffer.h.
Referenced by cheprep::ZipOutputStreamBuffer::close(), and cheprep::ZipOutputStreamBuffer::putNextEntry().