LibreOffice Module package (master) 1
|
#include <Deflater.hxx>
Public Member Functions | |
~Deflater () | |
Provides general purpose compression using the ZLIB compression library. More... | |
Deflater (sal_Int32 nSetLevel, bool bNowrap) | |
void | setInputSegment (const css::uno::Sequence< sal_Int8 > &rBuffer) |
bool | needsInput () const |
void | finish () |
bool | finished () const |
sal_Int32 | doDeflateSegment (css::uno::Sequence< sal_Int8 > &rBuffer, sal_Int32 nNewLength) |
sal_Int64 | getTotalIn () const |
sal_Int64 | getTotalOut () const |
void | reset () |
void | end () |
Private Types | |
typedef struct z_stream_s | z_stream |
Private Member Functions | |
void | init (sal_Int32 nLevel, bool bNowrap) |
sal_Int32 | doDeflateBytes (css::uno::Sequence< sal_Int8 > &rBuffer, sal_Int32 nNewOffset, sal_Int32 nNewLength) |
Private Attributes | |
css::uno::Sequence< sal_Int8 > | sInBuffer |
bool | bFinish |
bool | bFinished |
sal_Int64 | nOffset |
sal_Int64 | nLength |
sal_uInt64 | nTotalOut64 |
sal_uInt64 | nTotalIn64 |
std::unique_ptr< z_stream > | pStream |
Definition at line 31 of file Deflater.hxx.
|
private |
Definition at line 33 of file Deflater.hxx.
Deflater::~Deflater | ( | ) |
Provides general purpose compression using the ZLIB compression library.
Definition at line 34 of file Deflater.cxx.
References end().
Deflater::Deflater | ( | sal_Int32 | nSetLevel, |
bool | bNowrap | ||
) |
Definition at line 60 of file Deflater.cxx.
|
private |
Definition at line 71 of file Deflater.cxx.
References bFinish, bFinished, nLength, nOffset, nTotalIn64, nTotalOut64, pStream, and sInBuffer.
Referenced by doDeflateSegment().
sal_Int32 Deflater::doDeflateSegment | ( | css::uno::Sequence< sal_Int8 > & | rBuffer, |
sal_Int32 | nNewLength | ||
) |
Definition at line 125 of file Deflater.cxx.
References doDeflateBytes().
Referenced by ZipOutputEntry::doDeflate().
void Deflater::end | ( | ) |
void Deflater::finish | ( | ) |
Definition at line 121 of file Deflater.cxx.
References bFinish.
Referenced by ZipOutputEntry::finishDeflater().
|
inline |
Definition at line 52 of file Deflater.hxx.
Referenced by ZipOutputEntry::finishDeflater(), ZipOutputEntry::isDeflaterFinished(), and ZipOutputEntry::write().
sal_Int64 Deflater::getTotalIn | ( | ) | const |
Definition at line 130 of file Deflater.cxx.
References nTotalIn64, and pStream.
Referenced by ZipOutputEntry::getDeflaterTotalIn().
sal_Int64 Deflater::getTotalOut | ( | ) | const |
Definition at line 134 of file Deflater.cxx.
References nTotalOut64, and pStream.
Referenced by ZipOutputEntry::getDeflaterTotalOut().
|
private |
bool Deflater::needsInput | ( | ) | const |
Definition at line 117 of file Deflater.cxx.
References nLength.
Referenced by ZipOutputEntry::write().
void Deflater::reset | ( | ) |
Definition at line 138 of file Deflater.cxx.
References bFinish, bFinished, nLength, nOffset, and pStream.
Referenced by ZipOutputEntry::deflaterReset().
void Deflater::setInputSegment | ( | const css::uno::Sequence< sal_Int8 > & | rBuffer | ) |
Definition at line 110 of file Deflater.cxx.
References nLength, nOffset, and sInBuffer.
Referenced by ZipOutputEntry::write().
|
private |
Definition at line 36 of file Deflater.hxx.
Referenced by doDeflateBytes(), finish(), and reset().
|
private |
Definition at line 37 of file Deflater.hxx.
Referenced by doDeflateBytes(), and reset().
|
private |
Definition at line 38 of file Deflater.hxx.
Referenced by doDeflateBytes(), needsInput(), reset(), and setInputSegment().
|
private |
Definition at line 38 of file Deflater.hxx.
Referenced by doDeflateBytes(), reset(), and setInputSegment().
|
private |
Definition at line 40 of file Deflater.hxx.
Referenced by doDeflateBytes(), and getTotalIn().
|
private |
Definition at line 40 of file Deflater.hxx.
Referenced by doDeflateBytes(), and getTotalOut().
|
private |
Definition at line 41 of file Deflater.hxx.
Referenced by doDeflateBytes(), end(), getTotalIn(), getTotalOut(), init(), and reset().
|
private |
Definition at line 35 of file Deflater.hxx.
Referenced by doDeflateBytes(), and setInputSegment().