19#ifndef INCLUDED_COMPHELPER_SEQSTREAM_HXX
20#define INCLUDED_COMPHELPER_SEQSTREAM_HXX
22#include <config_options.h>
23#include <com/sun/star/uno/Sequence.hxx>
24#include <com/sun/star/io/XInputStream.hpp>
25#include <com/sun/star/io/XOutputStream.hpp>
26#include <com/sun/star/io/XSeekable.hpp>
27#include <com/sun/star/lang/XUnoTunnel.hpp>
38 :
public ::cppu::WeakImplHelper< css::io::XInputStream, css::io::XSeekable >,
39 public comphelper::ByteReader
50 virtual sal_Int32 SAL_CALL readBytes( css::uno::Sequence<sal_Int8>& aData, sal_Int32 nBytesToRead )
override;
52 virtual sal_Int32 SAL_CALL
readSomeBytes( css::uno::Sequence<sal_Int8>& aData, sal_Int32 nMaxBytesToRead )
override;
54 virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
override;
56 virtual sal_Int32 SAL_CALL available( )
override;
58 virtual void SAL_CALL closeInput( )
override;
60 virtual void SAL_CALL seek( sal_Int64 location )
override;
61 virtual sal_Int64 SAL_CALL getPosition( )
override;
62 virtual sal_Int64 SAL_CALL
getLength( )
override;
65 virtual sal_Int32 readSomeBytes(
sal_Int8* pData, sal_Int32 nBytesToRead )
override;
76 css::uno::Sequence<sal_Int8>
const m_aData;
84 :
public ::cppu::WeakImplHelper< css::io::XOutputStream >
90 css::uno::Sequence< sal_Int8 >& m_rSequence;
91 double m_nResizeFactor;
92 sal_Int32
const m_nMinimumResize;
102 void finalizeOutput();
103 virtual ~OSequenceOutputStream()
override {
if (m_bConnected) finalizeOutput(); }
118 OSequenceOutputStream(
119 css::uno::Sequence< sal_Int8 >& _rSeq,
120 double _nResizeFactor = 1.3,
121 sal_Int32 _nMinimumResize = 128
125 virtual void SAL_CALL writeBytes(
const css::uno::Sequence< sal_Int8 >& aData )
override;
127 virtual void SAL_CALL flush( )
override;
132 virtual void SAL_CALL closeOutput( )
override;
#define COMPHELPER_DLLPUBLIC
double getLength(const B2DPolygon &rCandidate)