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

#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
 

Private Member Functions

sal_Int32 avail ()
 

Private Attributes

::osl::Mutex m_aMutex
 
css::uno::Sequence< sal_Int8 > const m_aData
 
sal_Int32 m_nPos
 

Detailed Description

Definition at line 38 of file seqstream.hxx.

Constructor & Destructor Documentation

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

Definition at line 40 of file seqstream.cxx.

Member Function Documentation

sal_Int32 comphelper::SequenceInputStream::avail ( )
inlineprivate

Definition at line 49 of file seqstream.cxx.

References m_aData, and m_nPos.

Referenced by available(), and skipBytes().

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

Definition at line 102 of file seqstream.cxx.

References avail(), and m_aMutex.

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

Definition at line 110 of file seqstream.cxx.

References m_nPos.

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

Definition at line 130 of file seqstream.cxx.

References m_aData.

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

Definition at line 125 of file seqstream.cxx.

References m_nPos.

virtual sal_Int32 SAL_CALL comphelper::SequenceInputStream::readBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nBytesToRead 
)
overridevirtual
virtual sal_Int32 SAL_CALL comphelper::SequenceInputStream::readSomeBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nMaxBytesToRead 
)
overridevirtual
void SAL_CALL comphelper::SequenceInputStream::seek ( sal_Int64  location)
overridevirtual

Definition at line 118 of file seqstream.cxx.

References m_aData, m_nPos, and SAL_MAX_INT32.

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

Definition at line 86 of file seqstream.cxx.

References avail(), m_aMutex, and m_nPos.

Member Data Documentation

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

Definition at line 42 of file seqstream.hxx.

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

::osl::Mutex comphelper::SequenceInputStream::m_aMutex
private

Definition at line 41 of file seqstream.hxx.

Referenced by available(), and skipBytes().

sal_Int32 comphelper::SequenceInputStream::m_nPos
private

Definition at line 43 of file seqstream.hxx.

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


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