git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21600
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
\wxheading{Warning}
There are streams which do not have size by definition, such as socket streams.
\wxheading{Warning}
There are streams which do not have size by definition, such as socket streams.
-In that cases, GetSize returns an invalid size represented by
-
-\begin{verbatim}
-~(size_t)0
-\end{verbatim}
+In that cases, GetSize returns $0$ so you should always test its return value.
// reset the stream state
void Reset() { m_lasterror = wxSTREAM_NO_ERROR; }
// reset the stream state
void Reset() { m_lasterror = wxSTREAM_NO_ERROR; }
- // deprecated (doesn't make sense!), don't use
+ // this doesn't make sense for all streams, always test its return value
virtual size_t GetSize() const { return 0; }
#if WXWIN_COMPATIBILITY_2_2
virtual size_t GetSize() const { return 0; }
#if WXWIN_COMPATIBILITY_2_2