* Stream doc update.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux 1999-01-23 17:58:03 +00:00
parent b1c71cd056
commit 8801e78f99

View File

@ -106,14 +106,27 @@ Destructor.
\membersection{wxInputStream::Peek} \membersection{wxInputStream::Peek}
\func{char}{Peek}{\void} \func{char}{Peek}{\void}
Returns the first character in the input queue without removing it.
\membersection{wxInputStream::GetC} \membersection{wxInputStream::GetC}
\func{char}{GetC}{\void} \func{char}{GetC}{\void}
Returns the first character in the input queue and removes it.
\membersection{wxInputStream::Read} \membersection{wxInputStream::Read}
\func{wxInputStream&}{Read}{\param{void *}{buffer}, \param{size_t}{ size}} \func{wxInputStream&}{Read}{\param{void *}{buffer}, \param{size_t}{ size}}
Reads the specified amount of bytes and stores the data in \it{buffer}.
\it{WARNING !} The buffer needs absolutely to have at least the specified size.
This function returns a reference on the current object, so the user can test
any states of the stream right away.
\func{wxInputStream&}{Read}{\param{wxOutputStream&}{ stream_out}} \func{wxInputStream&}{Read}{\param{wxOutputStream&}{ stream_out}}
Reads data from the input queue and stores them in the specified output stream.
The data is read until an error is raised by one of the two streams.
% ------------------ % ------------------
% Position functions % Position functions
% ------------------ % ------------------
@ -121,9 +134,13 @@ Destructor.
\membersection{wxInputStream::SeekI} \membersection{wxInputStream::SeekI}
\func{off_t}{SeekI}{\param{off_t}{ pos}, \param{wxSeekMode}{ mode = wxFromStart}} \func{off_t}{SeekI}{\param{off_t}{ pos}, \param{wxSeekMode}{ mode = wxFromStart}}
Changes the stream current position.
\membersection{wxInputStream::TellI} \membersection{wxInputStream::TellI}
\constfunc{off_t}{TellI}{\void} \constfunc{off_t}{TellI}{\void}
Returns the current stream position.
% --------------- % ---------------
% State functions % State functions
% --------------- % ---------------
@ -131,9 +148,13 @@ Destructor.
\membersection{wxInputStream::InputStreamBuffer} \membersection{wxInputStream::InputStreamBuffer}
\func{wxStreamBuffer *}{InputStreamBuffer}{\void} \func{wxStreamBuffer *}{InputStreamBuffer}{\void}
Returns the stream buffer associated with the input stream.
\membersection{wxInputStream::LastRead} \membersection{wxInputStream::LastRead}
\constfunc{size_t}{LastRead}{\void} \constfunc{size_t}{LastRead}{\void}
Returns the last amount of bytes read.
% ----------------------------------------------------------------------------- % -----------------------------------------------------------------------------
% wxOutputStream % wxOutputStream
% ----------------------------------------------------------------------------- % -----------------------------------------------------------------------------
@ -152,36 +173,60 @@ Destructor.
% ctor & dtor % ctor & dtor
% ----------- % -----------
\membersection{wxOutputStream::wxInputStream} \membersection{wxOutputStream::wxOutputStream}
\func{}{wxOutputStream}{\void} \func{}{wxOutputStream}{\void}
Creates a dummy wxOutputStream object.
\func{}{wxOutputStream}{\param{wxStreamBuffer *}{sbuf}} \func{}{wxOutputStream}{\param{wxStreamBuffer *}{sbuf}}
Creates an input stream using the specified stream buffer \it{sbuf}. This
stream buffer can point to another stream.
\membersection{wxOutputStream::\destruct{wxOutputStream}} \membersection{wxOutputStream::\destruct{wxOutputStream}}
\func{}{\destruct{wxOutputStream}} \func{}{\destruct{wxOutputStream}}
Destructor.
% ----------- % -----------
% IO function % IO function
% ----------- % -----------
\membersection{wxOutputStream::PutC} \membersection{wxOutputStream::PutC}
\func{char}{PutC}{\void} \func{void}{PutC}{\param{char}{ c}}
Puts the specified character in the output queue and increments the
stream position.
\membersection{wxOutputStream::Write} \membersection{wxOutputStream::Write}
\func{wxOutputStream&}{Write}{\param{const void *}{buffer}, \param{size_t}{ size}} \func{wxOutputStream&}{Write}{\param{const void *}{buffer}, \param{size_t}{ size}}
Writes the specified amount of bytes using the data of \it{buffer}.
\it{WARNING !} The buffer needs absolutely to have at least the specified size.
This function returns a reference on the current object, so the user can test
any states of the stream right away.
\func{wxOutputStream&}{Write}{\param{wxInputStream&}{ stream_in}} \func{wxOutputStream&}{Write}{\param{wxInputStream&}{ stream_in}}
Reads data from the specified input stream and stores them
in the current stream. The data is read until an error is raised
by one of the two streams.
% ------------------ % ------------------
% Position functions % Position functions
% ------------------ % ------------------
\membersection{wxOutputStream::SeekO} \membersection{wxOutputStream::SeekO}
\func{off_t}{SeekO}{\param{off_t}{ pos}, \param{wxSeekMode}{ mode = wxFromStart}} \func{off_t}{SeekO}{\param{off_t}{ pos}, \param{wxSeekMode}}
Changes the stream current position.
\membersection{wxOutputStream::TellO} \membersection{wxOutputStream::TellO}
\constfunc{off_t}{TellO}{\void} \constfunc{off_t}{TellO}{\void}
Returns the current stream position.
% --------------- % ---------------
% State functions % State functions
% --------------- % ---------------
@ -189,6 +234,8 @@ Destructor.
\membersection{wxOutputStream::OutputStreamBuffer} \membersection{wxOutputStream::OutputStreamBuffer}
\func{wxStreamBuffer *}{OutputStreamBuffer}{\void} \func{wxStreamBuffer *}{OutputStreamBuffer}{\void}
Returns the stream buffer associated with the output stream.
\membersection{wxOutputStream::LastWrite} \membersection{wxOutputStream::LastWrite}
\constfunc{size_t}{LastWrite}{\void} \constfunc{size_t}{LastWrite}{\void}