X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a98423eb038738b5c4c76c575435034ee8b7d56..5fa507c8cadd72e5b9765167897baf00f48ac7ea:/interface/wx/stream.h?ds=inline diff --git a/interface/wx/stream.h b/interface/wx/stream.h index 6de6fa871c..0d7511ce44 100644 --- a/interface/wx/stream.h +++ b/interface/wx/stream.h @@ -99,12 +99,16 @@ public: /** @class wxStreamBuffer - @todo WRITE A DESCRIPTION + wxStreamBuffer is a cache manager for wxStreamBase: it manages a stream buffer + linked to a stream. + + Each stream always has one autoinitialized stream buffer, but you may + attach more of them to the same stream. @library{wxbase} @category{streams} - @see wxStreamBase + @see wxStreamBase, @ref overview_stream */ class wxStreamBuffer { @@ -127,7 +131,9 @@ public: @code streambuffer.Read(...); - streambuffer2.Read(...); // This call erases previous error messages set by 'streambuffer' + streambuffer2.Read(...); + // This call erases previous error messages set by 'streambuffer' + // assuming that both instances are stream buffers for the same stream @endcode @see SetBufferIO() @@ -290,7 +296,7 @@ public: @see Write() */ - Return value size_t Read(wxStreamBuffer* buffer); + size_t Read(wxStreamBuffer* buffer); /** Resets to the initial state variables concerning the buffer. @@ -326,7 +332,7 @@ public: @see wxStreamBuffer(), Fixed(), Flushable() */ - void SetBufferIO(char* buffer_start, char* buffer_end); + void SetBufferIO(void* start, void* end, bool takeOwnership = false); /** Destroys or invalidates the previous IO buffer and allocates a new one of the @@ -463,7 +469,7 @@ public: This function returns a reference on the current object, so the user can test any states of the stream right away. */ - wxOutputStream& Write(const void* buffer, size_t size); + virtual wxOutputStream& Write(const void* buffer, size_t size); /** Reads data from the specified input stream and stores them @@ -795,6 +801,8 @@ public: /** Returns the first character in the input queue and removes it, blocking until it appears if necessary. + + On success returns a value between 0 - 255; on end of file returns @c wxEOF. */ int GetC();