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:
Collaboration diagram for comphelper::SequenceInputStream:

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

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

Detailed Description

Definition at line 39 of file seqstream.hxx.

Constructor & Destructor Documentation

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

Definition at line 39 of file seqstream.cxx.

References m_nPos.

Member Function Documentation

sal_Int32 comphelper::SequenceInputStream::avail ( )

Definition at line 48 of file seqstream.cxx.

References m_aData, and m_nPos.

Referenced by available(), and skipBytes().

sal_Int32 SAL_CALL comphelper::SequenceInputStream::available ( )

Definition at line 101 of file seqstream.cxx.

References avail(), and m_aMutex.

void SAL_CALL comphelper::SequenceInputStream::closeInput ( )

Definition at line 109 of file seqstream.cxx.

References m_aMutex, and m_nPos.

sal_Int64 SAL_CALL comphelper::SequenceInputStream::getLength ( )

Definition at line 133 of file seqstream.cxx.

References m_aData, and m_aMutex.

sal_Int64 SAL_CALL comphelper::SequenceInputStream::getPosition ( )

Definition at line 127 of file seqstream.cxx.

References m_aMutex, and m_nPos.

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

Definition at line 119 of file seqstream.cxx.

References m_aData, m_aMutex, m_nPos, and SAL_MAX_INT32.

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

Definition at line 85 of file seqstream.cxx.

References avail(), m_aMutex, and m_nPos.

Member Data Documentation

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

Definition at line 43 of file seqstream.hxx.

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

std::mutex comphelper::SequenceInputStream::m_aMutex

Definition at line 42 of file seqstream.hxx.

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

sal_Int32 comphelper::SequenceInputStream::m_nPos

Definition at line 44 of file seqstream.hxx.

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

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