% -----------------------------------------------------------------------------
\section{\class{wxStreamBase}}\label{wxstreambase}
-This class is the base class of most stream related classes in wxWindows. It must
+This class is the base class of most stream related classes in wxWidgets. It must
not be used directly.
\wxheading{Derived from}
% ctor & dtor
% -----------
-\membersection{wxStreamBase::wxStreamBase}
+\membersection{wxStreamBase::wxStreamBase}\label{wxstreambasector}
\func{}{wxStreamBase}{\void}
Creates a dummy stream object. It doesn't do anything.
-\membersection{wxStreamBase::\destruct{wxStreamBase}}
+\membersection{wxStreamBase::\destruct{wxStreamBase}}\label{wxstreambasedtor}
\func{}{\destruct{wxStreamBase}}{\void}
\wxheading{See also}
-\helpref{LastError}{wxstreambaselasterror}
+\helpref{GetLastError}{wxstreambasegetlasterror}
-\membersection{wxStreamBase::LastError}\label{wxstreambaselasterror}
+\membersection{wxStreamBase::GetLastError}\label{wxstreambasegetlasterror}
-\constfunc{wxStreamError}{LastError}{\void}
+\constfunc{wxStreamError}{GetLastError}{\void}
This function returns the last error.
Internal function. It is called when the stream wants to read data of the
specified size. It should return the size that was actually read.
-\membersection{wxStreamBase::OnSysSeek}
+\membersection{wxStreamBase::OnSysSeek}\label{wxstreambaseonsysseek}
\func{off\_t}{OnSysSeek}{\param{off\_t}{ pos}, \param{wxSeekMode}{ mode}}
Internal function. It is called when the stream needs to change the
current position.
-\membersection{wxStreamBase::OnSysTell}
+\membersection{wxStreamBase::OnSysTell}\label{wxstreambaseonsystell}
\constfunc{off\_t}{OnSysTell}{\void}
Internal function. Is is called when the stream needs to know the
real position.
-\membersection{wxStreamBase::OnSysWrite}
+\membersection{wxStreamBase::OnSysWrite}\label{wxstreambaseonsyswrite}
\func{size\_t}{OnSysWrite}{\param{void *}{buffer}, \param{size\_t}{ bufsize}}
\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.