X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a25b76f5f92c3cc116cb4ca53e8e5a6bcd3ff42f..cda5c26a4842a74636022aad5493c080f96d6ae5:/include/wx/private/streamtempinput.h diff --git a/include/wx/private/streamtempinput.h b/include/wx/private/streamtempinput.h index 72f3957ec3..cf56481677 100644 --- a/include/wx/private/streamtempinput.h +++ b/include/wx/private/streamtempinput.h @@ -91,6 +91,19 @@ public: return !m_stream || m_stream->Eof(); } + // read everything remaining until the EOF, this should only be called once + // the child process terminates and we know that no more data is coming + bool ReadAll() + { + while ( !Eof() ) + { + if ( !Update() ) + return false; + } + + return true; + } + // dtor puts the data buffered during this object lifetime into the // associated stream ~wxStreamTempInputBuffer()