namespace com::sun::star::io
{ class XDataInputStream;
} namespace com::sun::star::io
{ class XDataOutputStream;
} namespace com::sun::star::io
{ class XMarkableStream;
}
namespace comphelper
{ /** implements handling for compatibly reading/writing data from/into an input/output stream. datawritteninablocksecuredbythisclassshouldbereadablebyolderversionswhich usethesamemechanism.
*/
class UNLESS_MERGELIBS(COMPHELPER_DLLPUBLIC) OStreamSection
{
css::uno::Reference<css::io::XMarkableStream> m_xMarkStream;
css::uno::Reference<css::io::XDataInputStream> m_xInStream;
css::uno::Reference<css::io::XDataOutputStream> m_xOutStream;
sal_Int32 m_nBlockStart;
sal_Int32 m_nBlockLen;
public: /** starts reading of a "skippable" section of data within the given input stream<BR> @param_rxInputthestreamtoreadfrom.Mustsupportthe css::io::XMarkableStreaminterface
*/
OStreamSection(const css::uno::Reference<css::io::XDataInputStream>& _rxInput);
/** starts writing of a "skippable" section of data into the given output stream @param_rxOutputthestreamthestreamtowriteto.Mustsupportthe css::io::XMarkableStreaminterface
*/
OStreamSection(const css::uno::Reference<css::io::XDataOutputStream>& _rxOutput);
/** dtor. <BR>If constructed for writing, the section "opened" by this object will be "closed".<BR> Ifconstructedforreading,anyremainingbytes'tiltheendofthesectionwillbeskipped.
*/
~OStreamSection();
};
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.