From: Václav Slavík Date: Fri, 16 Apr 2004 16:37:17 +0000 (+0000) Subject: make users aware of wxInputStream::Eof limitations X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/46e00cd75ab4835645914bf55d206489eb2166db?ds=inline make users aware of wxInputStream::Eof limitations git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/inputstr.tex b/docs/latex/wx/inputstr.tex index 05f45a1884..eb2c5f2249 100644 --- a/docs/latex/wx/inputstr.tex +++ b/docs/latex/wx/inputstr.tex @@ -49,8 +49,11 @@ Returns true if the end of stream has been reached. \wxheading{Note} -This cannot be really implemented for all streams and CanRead() is more -reliable than Eof(). +For some streams Eof() will not return true until an +attempt has been made to read past the end of the stream. +\helpref{LastRead()}{wxinputstreamlastread} +should be called after each read to check that +a non-zero number of bytes have been read. \membersection{wxInputStream::LastRead}\label{wxinputstreamlastread}