LibreOffice Module comphelper (master)  1
Public Member Functions | Private Attributes | List of all members
comphelper::UNOMemoryStream Class Reference
Inheritance diagram for comphelper::UNOMemoryStream:
Collaboration diagram for comphelper::UNOMemoryStream:

Public Member Functions

 UNOMemoryStream ()
virtual OUString SAL_CALL getImplementationName () override
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
virtual Reference< XInputStream > SAL_CALL getInputStream () override
virtual Reference< XOutputStream > SAL_CALL getOutputStream () override
virtual sal_Int32 SAL_CALL readBytes (Sequence< sal_Int8 > &aData, sal_Int32 nBytesToRead) override
virtual sal_Int32 SAL_CALL readSomeBytes (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 writeBytes (const Sequence< sal_Int8 > &aData) override
virtual void SAL_CALL flush () override
virtual void SAL_CALL closeOutput () override
virtual void SAL_CALL truncate () override

Private Attributes

std::vector< sal_Int8maData
sal_Int32 mnCursor

Detailed Description

Definition at line 48 of file memorystream.cxx.

Constructor & Destructor Documentation

comphelper::UNOMemoryStream::UNOMemoryStream ( )

Definition at line 87 of file memorystream.cxx.

Member Function Documentation

sal_Int32 SAL_CALL comphelper::UNOMemoryStream::available ( )

Definition at line 153 of file memorystream.cxx.

References maData, mnCursor, and SAL_MAX_INT32.

Referenced by readBytes(), and skipBytes().

void SAL_CALL comphelper::UNOMemoryStream::closeInput ( )

Definition at line 158 of file memorystream.cxx.

References mnCursor.

void SAL_CALL comphelper::UNOMemoryStream::closeOutput ( )

Definition at line 214 of file memorystream.cxx.

References mnCursor.

void SAL_CALL comphelper::UNOMemoryStream::flush ( )

Definition at line 210 of file memorystream.cxx.

OUString SAL_CALL comphelper::UNOMemoryStream::getImplementationName ( )

Definition at line 93 of file memorystream.cxx.

Reference< XInputStream > SAL_CALL comphelper::UNOMemoryStream::getInputStream ( )

Definition at line 109 of file memorystream.cxx.

sal_Int64 SAL_CALL comphelper::UNOMemoryStream::getLength ( )

Definition at line 181 of file memorystream.cxx.

References maData.

Reference< XOutputStream > SAL_CALL comphelper::UNOMemoryStream::getOutputStream ( )

Definition at line 114 of file memorystream.cxx.

sal_Int64 SAL_CALL comphelper::UNOMemoryStream::getPosition ( )

Definition at line 176 of file memorystream.cxx.

References mnCursor.

css::uno::Sequence< OUString > SAL_CALL comphelper::UNOMemoryStream::getSupportedServiceNames ( )

Definition at line 103 of file memorystream.cxx.

sal_Int32 SAL_CALL comphelper::UNOMemoryStream::readBytes ( Sequence< sal_Int8 > &  aData,
sal_Int32  nBytesToRead 

Definition at line 120 of file memorystream.cxx.

References available(), maData, and mnCursor.

Referenced by readSomeBytes().

sal_Int32 SAL_CALL comphelper::UNOMemoryStream::readSomeBytes ( Sequence< sal_Int8 > &  aData,
sal_Int32  nMaxBytesToRead 

Definition at line 140 of file memorystream.cxx.

References readBytes().

void SAL_CALL comphelper::UNOMemoryStream::seek ( sal_Int64  location)

Definition at line 164 of file memorystream.cxx.

References maData, mnCursor, and SAL_MAX_INT32.

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

Definition at line 145 of file memorystream.cxx.

References available(), and mnCursor.

sal_Bool SAL_CALL comphelper::UNOMemoryStream::supportsService ( const OUString &  ServiceName)

Definition at line 98 of file memorystream.cxx.

References cppu::supportsService().

void SAL_CALL comphelper::UNOMemoryStream::truncate ( )

Definition at line 220 of file memorystream.cxx.

References maData, and mnCursor.

void SAL_CALL comphelper::UNOMemoryStream::writeBytes ( const Sequence< sal_Int8 > &  aData)

Definition at line 187 of file memorystream.cxx.

References maData, mnCursor, and SAL_MAX_INT32.

Member Data Documentation

std::vector< sal_Int8 > comphelper::UNOMemoryStream::maData

Definition at line 83 of file memorystream.cxx.

Referenced by available(), getLength(), readBytes(), seek(), truncate(), and writeBytes().

sal_Int32 comphelper::UNOMemoryStream::mnCursor

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