LibreOffice Module comphelper (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
comphelper::SequenceInputStream Class Referencefinal

#include <seqstream.hxx>

Inheritance diagram for comphelper::SequenceInputStream:
[legend]
Collaboration diagram for comphelper::SequenceInputStream:
[legend]

Public Member Functions

 SequenceInputStream (css::uno::Sequence< sal_Int8 > const &rData)
 
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 seek (sal_Int64 location) override
 
virtual sal_Int64 SAL_CALL getPosition () override
 
virtual sal_Int64 SAL_CALL getLength () override
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 
virtual sal_Int32 readSomeBytes (sal_Int8 *pData, sal_Int32 nBytesToRead) override
 
- Public Member Functions inherited from comphelper::ByteReader
virtual ~ByteReader ()
 
virtual sal_Int32 readSomeBytes (sal_Int8 *aData, sal_Int32 nBytesToRead)=0
 

Private Member Functions

sal_Int32 avail ()
 

Private Attributes

std::mutex m_aMutex
 
css::uno::Sequence< sal_Int8 > const m_aData
 
sal_Int32 m_nPos
 

Additional Inherited Members

- Static Public Member Functions inherited from comphelper::ByteReader
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Detailed Description

Definition at line 41 of file seqstream.hxx.

Constructor & Destructor Documentation

◆ SequenceInputStream()

comphelper::SequenceInputStream::SequenceInputStream ( css::uno::Sequence< sal_Int8 > const &  rData)

Definition at line 39 of file seqstream.cxx.

References m_nPos, and rData.

Member Function Documentation

◆ avail()

sal_Int32 comphelper::SequenceInputStream::avail ( )
inlineprivate

Definition at line 48 of file seqstream.cxx.

References m_aData, and m_nPos.

Referenced by available(), readSomeBytes(), and skipBytes().

◆ available()

sal_Int32 SAL_CALL comphelper::SequenceInputStream::available ( )
overridevirtual

Definition at line 125 of file seqstream.cxx.

References avail(), and m_aMutex.

◆ closeInput()

void SAL_CALL comphelper::SequenceInputStream::closeInput ( )
overridevirtual

Definition at line 133 of file seqstream.cxx.

References m_aMutex, and m_nPos.

◆ getLength()

sal_Int64 SAL_CALL comphelper::SequenceInputStream::getLength ( )
overridevirtual

Definition at line 157 of file seqstream.cxx.

References m_aData, and m_aMutex.

◆ getPosition()

sal_Int64 SAL_CALL comphelper::SequenceInputStream::getPosition ( )
overridevirtual

Definition at line 151 of file seqstream.cxx.

References m_aMutex, and m_nPos.

◆ getSomething()

sal_Int64 SAL_CALL comphelper::SequenceInputStream::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Definition at line 95 of file seqstream.cxx.

References comphelper::ByteReader::getUnoTunnelId().

◆ readBytes()

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

◆ readSomeBytes() [1/2]

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

References getLength().

◆ readSomeBytes() [2/2]

sal_Int32 comphelper::SequenceInputStream::readSomeBytes ( sal_Int8 pData,
sal_Int32  nBytesToRead 
)
overridevirtual

Implements comphelper::ByteReader.

Definition at line 77 of file seqstream.cxx.

References avail(), m_aData, m_aMutex, m_nPos, and pData.

◆ seek()

void SAL_CALL comphelper::SequenceInputStream::seek ( sal_Int64  location)
overridevirtual

Definition at line 143 of file seqstream.cxx.

References m_aData, m_aMutex, m_nPos, and SAL_MAX_INT32.

◆ skipBytes()

void SAL_CALL comphelper::SequenceInputStream::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 109 of file seqstream.cxx.

References avail(), m_aMutex, and m_nPos.

Member Data Documentation

◆ m_aData

css::uno::Sequence<sal_Int8> const comphelper::SequenceInputStream::m_aData
private

Definition at line 46 of file seqstream.hxx.

Referenced by avail(), getLength(), readSomeBytes(), and seek().

◆ m_aMutex

std::mutex comphelper::SequenceInputStream::m_aMutex
private

Definition at line 45 of file seqstream.hxx.

Referenced by available(), closeInput(), getLength(), getPosition(), readSomeBytes(), seek(), and skipBytes().

◆ m_nPos

sal_Int32 comphelper::SequenceInputStream::m_nPos
private

Definition at line 47 of file seqstream.hxx.

Referenced by avail(), closeInput(), getPosition(), readSomeBytes(), seek(), and skipBytes().


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