diff options
author | Martin Gallwey <mtg@openoffice.org> | 2001-07-04 13:56:37 +0000 |
---|---|---|
committer | Martin Gallwey <mtg@openoffice.org> | 2001-07-04 13:56:37 +0000 |
commit | 1157563ae83b41998a4982c06299780aba7830d4 (patch) | |
tree | 91fa8c017f3e78f7291dc4628d5e49c434ee0b77 /package/inc/ByteChucker.hxx | |
parent | f424dd7645c4aed5ecad0e9437f552fa934c6ba2 (diff) |
#86708# changes for pack'n'go feature (incomplete)
Diffstat (limited to 'package/inc/ByteChucker.hxx')
-rw-r--r-- | package/inc/ByteChucker.hxx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/package/inc/ByteChucker.hxx b/package/inc/ByteChucker.hxx index 2ba8a6c569f2..4b9cbf0b2ae0 100644 --- a/package/inc/ByteChucker.hxx +++ b/package/inc/ByteChucker.hxx @@ -2,9 +2,9 @@ * * $RCSfile: ByteChucker.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: mtg $ $Date: 2001-05-31 09:36:05 $ + * last change: $Author: mtg $ $Date: 2001-07-04 14:56:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -68,20 +68,25 @@ #include <com/sun/star/io/XSeekable.hpp> #endif +class ThreadedBuffer; + class ByteChucker { + friend class ThreadedBuffer; protected: com::sun::star::uno::Reference < com::sun::star::io::XOutputStream > xStream; com::sun::star::uno::Reference < com::sun::star::io::XSeekable > xSeek; - com::sun::star::uno::Sequence < sal_Int8 > a1Sequence, a2Sequence, a4Sequence; - sal_Int8 *p1Sequence, *p2Sequence, *p4Sequence; + com::sun::star::uno::Sequence < sal_Int8 > aBuffer, a1Sequence, a2Sequence, a4Sequence; + sal_Bool bSpannable, bNextWriteIsAtomic; + sal_Int8 * const p1Sequence, * const p2Sequence, * const p4Sequence, * pBuffer; + sal_Int32 nBufferSize, nCurrentBufferPos; public: ByteChucker (com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> xOstream); ~ByteChucker(); // XOutputStream - void SAL_CALL writeBytes( const ::com::sun::star::uno::Sequence< sal_Int8 >& aData ) + void SAL_CALL writeBytes( const ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nLength = -1, const sal_Int8 * const pData = NULL) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); void SAL_CALL flush( ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); @@ -101,6 +106,8 @@ public: ByteChucker& operator << (sal_uInt8 nuInt8); ByteChucker& operator << (sal_uInt16 nuInt16); ByteChucker& operator << (sal_uInt32 nuInt32); + void setSpannable ( sal_Bool bNewSpannable ); + inline sal_Bool isSpannable () { return bSpannable; } }; #endif |