1999-01-25 13:33:08 -05:00
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxInputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
\section{\class{wxInputStream}}\label{wxinputstream}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxStreamBase}{wxstreambase}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/stream.h>
|
|
|
|
|
1999-01-25 13:33:08 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxStreamBuffer}{wxstreambuffer}
|
|
|
|
|
|
|
|
% -----------
|
|
|
|
% ctor & dtor
|
|
|
|
% -----------
|
|
|
|
\membersection{wxInputStream::wxInputStream}
|
|
|
|
|
|
|
|
\func{}{wxInputStream}{\void}
|
|
|
|
|
|
|
|
Creates a dummy input stream.
|
|
|
|
|
|
|
|
\func{}{wxInputStream}{\param{wxStreamBuffer *}{sbuf}}
|
|
|
|
|
|
|
|
Creates an input stream using the specified stream buffer \it{sbuf}. This
|
|
|
|
stream buffer can point to another stream.
|
|
|
|
|
|
|
|
\membersection{wxInputStream::\destruct{wxInputStream}}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxInputStream}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
|
|
|
\membersection{wxInputStream::GetC}
|
|
|
|
|
|
|
|
\func{char}{GetC}{\void}
|
|
|
|
|
|
|
|
Returns the first character in the input queue and removes it.
|
|
|
|
|
1999-02-25 10:07:00 -05:00
|
|
|
\membersection{wxInputStream::InputStreamBuffer}
|
|
|
|
|
|
|
|
\func{wxStreamBuffer*}{InputStreamBuffer}{\void}
|
|
|
|
|
|
|
|
Returns the stream buffer associated with the input stream.
|
|
|
|
|
|
|
|
\membersection{wxInputStream::LastRead}
|
|
|
|
|
|
|
|
\constfunc{size\_t}{LastRead}{\void}
|
|
|
|
|
|
|
|
Returns the last number of bytes read.
|
|
|
|
|
|
|
|
\membersection{wxInputStream::Peek}
|
|
|
|
|
|
|
|
\func{char}{Peek}{\void}
|
|
|
|
|
|
|
|
Returns the first character in the input queue without removing it.
|
|
|
|
|
1999-01-25 13:33:08 -05:00
|
|
|
\membersection{wxInputStream::Read}
|
|
|
|
|
1999-02-25 10:07:00 -05:00
|
|
|
\func{wxInputStream\&}{Read}{\param{void *}{buffer}, \param{size\_t}{ size}}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
Reads the specified amount of bytes and stores the data in \it{buffer}.
|
|
|
|
|
1999-02-09 13:12:20 -05:00
|
|
|
\wxheading{Warning}
|
|
|
|
|
|
|
|
The buffer absolutely needs to have at least the specified size.
|
|
|
|
|
|
|
|
\wxheading{Return value}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
This function returns a reference on the current object, so the user can test
|
|
|
|
any states of the stream right away.
|
|
|
|
|
1999-03-13 15:14:37 -05:00
|
|
|
\func{wxInputStream\&}{Read}{\param{wxOutputStream\&}{ stream\_out}}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
Reads data from the input queue and stores it in the specified output stream.
|
|
|
|
The data is read until an error is raised by one of the two streams.
|
|
|
|
|
1999-02-09 13:12:20 -05:00
|
|
|
\wxheading{Return value}
|
|
|
|
|
|
|
|
This function returns a reference on the current object, so the user can test
|
|
|
|
any states of the stream right away.
|
|
|
|
|
1999-01-25 13:33:08 -05:00
|
|
|
\membersection{wxInputStream::SeekI}
|
|
|
|
|
1999-02-25 10:07:00 -05:00
|
|
|
\func{off\_t}{SeekI}{\param{off\_t}{ pos}, \param{wxSeekMode}{ mode = wxFromStart}}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
Changes the stream current position.
|
|
|
|
|
|
|
|
\membersection{wxInputStream::TellI}
|
|
|
|
|
1999-02-25 10:07:00 -05:00
|
|
|
\constfunc{off\_t}{TellI}{\void}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
Returns the current stream position.
|
|
|
|
|