LibreOffice Module package (master) 1
Public Member Functions | Private Attributes | List of all members
ZipPackageBuffer Class Referencefinal

#include <ZipPackageBuffer.hxx>

Inheritance diagram for ZipPackageBuffer:
[legend]
Collaboration diagram for ZipPackageBuffer:
[legend]

Public Member Functions

 ZipPackageBuffer ()
 
virtual ~ZipPackageBuffer () override
 
void realloc (sal_Int32 nSize)
 
const css::uno::Sequence< sal_Int8 > & getSequence () const
 
virtual sal_Int32 SAL_CALL readBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nBytesToRead) override
 
virtual sal_Int32 SAL_CALL readSomeBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nMaxBytesToRead) override
 
virtual void SAL_CALL skipBytes (sal_Int32 nBytesToSkip) override
 
virtual sal_Int32 SAL_CALL available () override
 
virtual void SAL_CALL closeInput () override
 
virtual void SAL_CALL writeBytes (const css::uno::Sequence< sal_Int8 > &aData) override
 
virtual void SAL_CALL flush () override
 
virtual void SAL_CALL closeOutput () override
 
virtual void SAL_CALL seek (sal_Int64 location) override
 
virtual sal_Int64 SAL_CALL getPosition () override
 
virtual sal_Int64 SAL_CALL getLength () override
 

Private Attributes

css::uno::Sequence< sal_Int8m_aBuffer
 
sal_Int64 m_nBufferSize
 
sal_Int64 m_nEnd
 
sal_Int64 m_nCurrent
 
bool m_bMustInitBuffer
 

Detailed Description

Definition at line 27 of file ZipPackageBuffer.hxx.

Constructor & Destructor Documentation

◆ ZipPackageBuffer()

ZipPackageBuffer::ZipPackageBuffer ( )

Definition at line 39 of file ZipPackageBuffer.cxx.

◆ ~ZipPackageBuffer()

ZipPackageBuffer::~ZipPackageBuffer ( )
overridevirtual

Definition at line 46 of file ZipPackageBuffer.cxx.

Member Function Documentation

◆ available()

sal_Int32 SAL_CALL ZipPackageBuffer::available ( )
overridevirtual

Definition at line 78 of file ZipPackageBuffer.cxx.

References m_nCurrent, m_nEnd, and SAL_MAX_INT32.

◆ closeInput()

void SAL_CALL ZipPackageBuffer::closeInput ( )
overridevirtual

Definition at line 82 of file ZipPackageBuffer.cxx.

◆ closeOutput()

void SAL_CALL ZipPackageBuffer::closeOutput ( )
overridevirtual

Definition at line 110 of file ZipPackageBuffer.cxx.

◆ flush()

void SAL_CALL ZipPackageBuffer::flush ( )
overridevirtual

Definition at line 107 of file ZipPackageBuffer.cxx.

◆ getLength()

sal_Int64 SAL_CALL ZipPackageBuffer::getLength ( )
overridevirtual

Definition at line 123 of file ZipPackageBuffer.cxx.

References m_nEnd.

◆ getPosition()

sal_Int64 SAL_CALL ZipPackageBuffer::getPosition ( )
overridevirtual

Definition at line 119 of file ZipPackageBuffer.cxx.

References m_nCurrent.

◆ getSequence()

const css::uno::Sequence< sal_Int8 > & ZipPackageBuffer::getSequence ( ) const
inline

Definition at line 42 of file ZipPackageBuffer.hxx.

References m_aBuffer.

◆ readBytes()

sal_Int32 SAL_CALL ZipPackageBuffer::readBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nBytesToRead 
)
overridevirtual

Definition at line 50 of file ZipPackageBuffer.cxx.

References aData, m_aBuffer, m_nCurrent, m_nEnd, and THROW_WHERE.

Referenced by readSomeBytes().

◆ readSomeBytes()

sal_Int32 SAL_CALL ZipPackageBuffer::readSomeBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nMaxBytesToRead 
)
overridevirtual

Definition at line 64 of file ZipPackageBuffer.cxx.

References aData, and readBytes().

◆ realloc()

void ZipPackageBuffer::realloc ( sal_Int32  nSize)
inline

Definition at line 41 of file ZipPackageBuffer.hxx.

References m_aBuffer.

◆ seek()

void SAL_CALL ZipPackageBuffer::seek ( sal_Int64  location)
overridevirtual

Definition at line 113 of file ZipPackageBuffer.cxx.

References m_nCurrent, m_nEnd, and THROW_WHERE.

◆ skipBytes()

void SAL_CALL ZipPackageBuffer::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 68 of file ZipPackageBuffer.cxx.

References m_nCurrent, m_nEnd, and THROW_WHERE.

◆ writeBytes()

void SAL_CALL ZipPackageBuffer::writeBytes ( const css::uno::Sequence< sal_Int8 > &  aData)
overridevirtual

Definition at line 85 of file ZipPackageBuffer.cxx.

References aData, m_aBuffer, m_bMustInitBuffer, m_nBufferSize, m_nCurrent, and m_nEnd.

Member Data Documentation

◆ m_aBuffer

css::uno::Sequence< sal_Int8 > ZipPackageBuffer::m_aBuffer
private

Definition at line 34 of file ZipPackageBuffer.hxx.

Referenced by getSequence(), readBytes(), realloc(), and writeBytes().

◆ m_bMustInitBuffer

bool ZipPackageBuffer::m_bMustInitBuffer
private

Definition at line 36 of file ZipPackageBuffer.hxx.

Referenced by writeBytes().

◆ m_nBufferSize

sal_Int64 ZipPackageBuffer::m_nBufferSize
private

Definition at line 35 of file ZipPackageBuffer.hxx.

Referenced by writeBytes().

◆ m_nCurrent

sal_Int64 ZipPackageBuffer::m_nCurrent
private

Definition at line 35 of file ZipPackageBuffer.hxx.

Referenced by available(), getPosition(), readBytes(), seek(), skipBytes(), and writeBytes().

◆ m_nEnd

sal_Int64 ZipPackageBuffer::m_nEnd
private

Definition at line 35 of file ZipPackageBuffer.hxx.

Referenced by available(), getLength(), readBytes(), seek(), skipBytes(), and writeBytes().


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