/** Returns true, if the stream position is invalid (EOF). This flag turns true*after*thefirstattempttoseek/readbeyondthestreamend.
*/ bool isEof() const { return mbEof; }
/** Returns the size of the remaining data available in the stream, if streamsupportssize()andtell(),otherwise-1.
*/
sal_Int64 getRemaining() const;
/** Seeks the stream to the beginning, if stream is seekable.
*/ void seekToStart() { seek( 0 ); }
/** Seeks the stream forward to a position that is a multiple of the passed blocksize,ifstreamisseekable.
/** Base class for binary input and output streams wrapping a UNO stream, seekableviathecom.sun.star.io.XSeekableinterface.
*/ class BinaryXSeekableStream : publicvirtual BinaryStreamBase
{ public: virtual ~BinaryXSeekableStream() override;
/** Returns the size of the stream, if wrapped stream is seekable, otherwise -1. */ virtual sal_Int64 size() const override; /** Returns the current stream position, if wrapped stream is seekable, otherwise -1. */ virtual sal_Int64 tell() const override; /** Seeks the stream to the passed position, if wrapped stream is seekable. */ virtualvoid seek( sal_Int64 nPos ) override; /** Releases the reference to the UNO XSeekable interface. */ virtualvoid close() override;
/** Base class for binary input and output streams wrapping a StreamDataSequence,whichisalwaysseekable.
ThewrappeddatasequenceMUSTliveatleastaslongasthisstream wrapper.ThedatasequenceMUSTNOTbechangedfromoutsideaslongasthis streamwrapperisusedtomodifyit.
*/ class OOX_DLLPUBLIC SequenceSeekableStream : publicvirtual BinaryStreamBase
{ public: /** Returns the size of the wrapped data sequence. */ virtual sal_Int64 size() const override; /** Returns the current stream position. */ virtual sal_Int64 tell() const override; /** Seeks the stream to the passed position. */ virtualvoid seek( sal_Int64 nPos ) override; /** Releases the reference to the data sequence. */ virtualvoid close() override;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.