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

#include <oslfile2streamwrap.hxx>

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

Public Member Functions

COMPHELPER_DLLPUBLIC OSLInputStreamWrapper (::osl::File &_rStream)
 

Private Member Functions

virtual ~OSLInputStreamWrapper () override
 
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
 

Private Attributes

std::mutex m_aMutex
 
::osl::File * m_pFile
 

Detailed Description

Definition at line 35 of file oslfile2streamwrap.hxx.

Constructor & Destructor Documentation

◆ OSLInputStreamWrapper()

comphelper::OSLInputStreamWrapper::OSLInputStreamWrapper ( ::osl::File &  _rStream)

Definition at line 35 of file oslfile2streamwrap.cxx.

References m_pFile.

◆ ~OSLInputStreamWrapper()

comphelper::OSLInputStreamWrapper::~OSLInputStreamWrapper ( )
overrideprivatevirtual

Definition at line 41 of file oslfile2streamwrap.cxx.

Member Function Documentation

◆ available()

sal_Int32 SAL_CALL comphelper::OSLInputStreamWrapper::available ( )
overrideprivatevirtual

Definition at line 98 of file oslfile2streamwrap.cxx.

References m_aMutex, m_pFile, nPos, and SAL_MAX_INT32.

◆ closeInput()

void SAL_CALL comphelper::OSLInputStreamWrapper::closeInput ( )
overrideprivatevirtual

Definition at line 126 of file oslfile2streamwrap.cxx.

References m_pFile.

◆ readBytes()

sal_Int32 SAL_CALL comphelper::OSLInputStreamWrapper::readBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nBytesToRead 
)
overrideprivatevirtual

Definition at line 46 of file oslfile2streamwrap.cxx.

References aData, m_aMutex, m_pFile, and o3tl::make_unsigned().

Referenced by readSomeBytes().

◆ readSomeBytes()

sal_Int32 SAL_CALL comphelper::OSLInputStreamWrapper::readSomeBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nMaxBytesToRead 
)
overrideprivatevirtual

Definition at line 70 of file oslfile2streamwrap.cxx.

References aData, m_pFile, and readBytes().

◆ skipBytes()

void SAL_CALL comphelper::OSLInputStreamWrapper::skipBytes ( sal_Int32  nBytesToSkip)
overrideprivatevirtual

Definition at line 81 of file oslfile2streamwrap.cxx.

References m_aMutex, and m_pFile.

Member Data Documentation

◆ m_aMutex

std::mutex comphelper::OSLInputStreamWrapper::m_aMutex
private

Definition at line 50 of file oslfile2streamwrap.hxx.

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

◆ m_pFile

::osl::File* comphelper::OSLInputStreamWrapper::m_pFile
private

Definition at line 51 of file oslfile2streamwrap.hxx.

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


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