LibreOffice Module unotools (master) 1
|
The helper implementation for a using input streams based on SvLockBytes. More...
#include <streamhelper.hxx>
Public Member Functions | |
OInputStreamHelper (SvLockBytesRef _xLockBytes, sal_uInt32 _nAvailable) | |
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 void SAL_CALL | acquire () SAL_NOEXCEPT override |
Private Attributes | |
std::mutex | m_aMutex |
SvLockBytesRef | m_xLockBytes |
sal_uInt64 | m_nActPos |
sal_Int32 | m_nAvailable |
The helper implementation for a using input streams based on SvLockBytes.
Definition at line 37 of file streamhelper.hxx.
|
inline |
Definition at line 45 of file streamhelper.hxx.
|
overridevirtual |
Definition at line 116 of file streamhelper.cxx.
|
overridevirtual |
Definition at line 98 of file streamhelper.cxx.
References tools::SvRef< typename T >::is(), m_aMutex, m_nAvailable, and m_xLockBytes.
|
overridevirtual |
Definition at line 107 of file streamhelper.cxx.
References tools::SvRef< typename T >::is(), m_aMutex, and m_xLockBytes.
|
overridevirtual |
Definition at line 68 of file streamhelper.cxx.
References tools::SvRef< typename T >::is(), m_aMutex, m_xLockBytes, and SvLockBytesStat::nSize.
|
overridevirtual |
Definition at line 63 of file streamhelper.cxx.
References m_nActPos.
|
overridevirtual |
Definition at line 31 of file streamhelper.cxx.
References aData, ERRCODE_NONE, tools::SvRef< typename T >::is(), m_aMutex, m_nActPos, m_xLockBytes, and o3tl::make_unsigned().
Referenced by readSomeBytes().
|
overridevirtual |
Definition at line 79 of file streamhelper.cxx.
References aData, and readBytes().
|
overridevirtual |
Definition at line 57 of file streamhelper.cxx.
|
overridevirtual |
Definition at line 86 of file streamhelper.cxx.
References tools::SvRef< typename T >::is(), m_aMutex, m_nActPos, and m_xLockBytes.
|
private |
Definition at line 39 of file streamhelper.hxx.
Referenced by available(), closeInput(), getLength(), readBytes(), seek(), and skipBytes().
|
private |
Definition at line 41 of file streamhelper.hxx.
Referenced by getPosition(), readBytes(), seek(), and skipBytes().
|
private |
Definition at line 42 of file streamhelper.hxx.
Referenced by available().
|
private |
Definition at line 40 of file streamhelper.hxx.
Referenced by available(), closeInput(), getLength(), readBytes(), and skipBytes().