LibreOffice Module package (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ZipUtils::Inflater Class Referencefinal

#include <Inflater.hxx>

Public Member Functions

 Inflater (bool bNoWrap)
 Provides general purpose decompression using the ZLIB library. More...
 
 ~Inflater ()
 
void setInput (const css::uno::Sequence< sal_Int8 > &rBuffer)
 
bool needsDictionary () const
 
bool finished () const
 
sal_Int32 doInflateSegment (css::uno::Sequence< sal_Int8 > &rBuffer, sal_Int32 nNewOffset, sal_Int32 nNewLength)
 
void end ()
 
sal_Int32 getLastInflateError () const
 

Private Types

typedef struct z_stream_s z_stream
 

Private Member Functions

sal_Int32 doInflateBytes (css::uno::Sequence< sal_Int8 > &rBuffer, sal_Int32 nNewOffset, sal_Int32 nNewLength)
 

Private Attributes

bool bFinished
 
bool bNeedDict
 
sal_Int32 nOffset
 
sal_Int32 nLength
 
sal_Int32 nLastInflateError
 
std::unique_ptr< z_streampStream
 
css::uno::Sequence< sal_Int8sInBuffer
 

Detailed Description

Definition at line 31 of file Inflater.hxx.

Member Typedef Documentation

◆ z_stream

typedef struct z_stream_s ZipUtils::Inflater::z_stream
private

Definition at line 33 of file Inflater.hxx.

Constructor & Destructor Documentation

◆ Inflater()

Inflater::Inflater ( bool  bNoWrap)

Provides general purpose decompression using the ZLIB library.

Definition at line 29 of file Inflater.cxx.

References nLength, and pStream.

◆ ~Inflater()

Inflater::~Inflater ( )

Definition at line 56 of file Inflater.cxx.

References end().

Member Function Documentation

◆ doInflateBytes()

sal_Int32 Inflater::doInflateBytes ( css::uno::Sequence< sal_Int8 > &  rBuffer,
sal_Int32  nNewOffset,
sal_Int32  nNewLength 
)
private

Definition at line 91 of file Inflater.cxx.

References bFinished, bNeedDict, nLastInflateError, nLength, nOffset, pStream, and sInBuffer.

Referenced by doInflateSegment().

◆ doInflateSegment()

sal_Int32 Inflater::doInflateSegment ( css::uno::Sequence< sal_Int8 > &  rBuffer,
sal_Int32  nNewOffset,
sal_Int32  nNewLength 
)

Definition at line 69 of file Inflater.cxx.

References doInflateBytes().

Referenced by XUnbufferedStream::readBytes().

◆ end()

void Inflater::end ( )

Definition at line 78 of file Inflater.cxx.

References pStream.

Referenced by ~Inflater().

◆ finished()

bool ZipUtils::Inflater::finished ( ) const
inline

Definition at line 46 of file Inflater.hxx.

Referenced by XUnbufferedStream::readBytes().

◆ getLastInflateError()

sal_Int32 ZipUtils::Inflater::getLastInflateError ( ) const
inline

Definition at line 50 of file Inflater.hxx.

Referenced by XUnbufferedStream::readBytes().

◆ needsDictionary()

bool ZipUtils::Inflater::needsDictionary ( ) const
inline

Definition at line 45 of file Inflater.hxx.

Referenced by XUnbufferedStream::readBytes().

◆ setInput()

void Inflater::setInput ( const css::uno::Sequence< sal_Int8 > &  rBuffer)

Definition at line 61 of file Inflater.cxx.

References nLength, nOffset, and sInBuffer.

Referenced by XUnbufferedStream::readBytes().

Member Data Documentation

◆ bFinished

bool ZipUtils::Inflater::bFinished
private

Definition at line 35 of file Inflater.hxx.

Referenced by doInflateBytes().

◆ bNeedDict

bool ZipUtils::Inflater::bNeedDict
private

Definition at line 35 of file Inflater.hxx.

Referenced by doInflateBytes().

◆ nLastInflateError

sal_Int32 ZipUtils::Inflater::nLastInflateError
private

Definition at line 36 of file Inflater.hxx.

Referenced by doInflateBytes().

◆ nLength

sal_Int32 ZipUtils::Inflater::nLength
private

Definition at line 36 of file Inflater.hxx.

Referenced by doInflateBytes(), and setInput().

◆ nOffset

sal_Int32 ZipUtils::Inflater::nOffset
private

Definition at line 36 of file Inflater.hxx.

Referenced by doInflateBytes(), and setInput().

◆ pStream

std::unique_ptr<z_stream> ZipUtils::Inflater::pStream
private

Definition at line 37 of file Inflater.hxx.

Referenced by doInflateBytes(), end(), and Inflater().

◆ sInBuffer

css::uno::Sequence< sal_Int8 > ZipUtils::Inflater::sInBuffer
private

Definition at line 38 of file Inflater.hxx.

Referenced by doInflateBytes(), and setInput().


The documentation for this class was generated from the following files: