added functions to read/write several elements at once (patch 754986)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-10 11:47:27 +00:00
parent 019abbf209
commit 53663be8a5
5 changed files with 223 additions and 3 deletions

View File

@@ -78,30 +78,55 @@ big-endian order).
Reads a single byte from the stream.
\func{void}{Read8}{\param{wxUint8 *}{buffer}, \param{size\_t }{size}}
Reads bytes from the stream in a specified buffer. The amount of
bytes to read is specified by the {\it size} variable.
\membersection{wxDataInputStream::Read16}
\func{wxUint16}{Read16}{\void}
Reads a 16 bit unsigned integer from the stream.
\func{void}{Read16}{\param{wxUint16 *}{buffer}, \param{size\_t }{size}}
Reads 16 bit unsigned integers from the stream in a specified buffer. the
amount of 16 bit unsigned integer to read is specified by the {\it size} variable.
\membersection{wxDataInputStream::Read32}
\func{wxUint32}{Read32}{\void}
Reads a 32 bit unsigned integer from the stream.
\func{void}{Read32}{\param{wxUint32 *}{buffer}, \param{size\_t }{size}}
Reads 32 bit unsigned integers from the stream in a specified buffer. the amount of
32 bit unsigned integer to read is specified by the {\it size} variable.
\membersection{wxDataInputStream::Read64}
\func{wxUint64}{Read64}{\void}
Reads a 64 bit unsigned integer from the stream.
\func{void}{Read64}{\param{wxUint64 *}{buffer}, \param{size\_t }{size}}
Reads 64 bit unsigned integers from the stream in a specified buffer. the amount of
64 bit unsigned integer to read is specified by the {\it size} variable.
\membersection{wxDataInputStream::ReadDouble}
\func{double}{ReadDouble}{\void}
Reads a double (IEEE encoded) from the stream.
\func{void}{ReadDouble}{\param{double *}{buffer}, \param{size\_t }{size}}
Reads double data (IEEE encoded) from the stream in a specified buffer. the amount of
double to read is specified by the {\it size} variable.
\membersection{wxDataInputStream::ReadString}\label{wxdatainputstreamreadstring}
\func{wxString}{ReadString}{\void}
@@ -116,4 +141,3 @@ object passed to constructor and returns the result as wxString. You are
responsible for using the same convertor as when writing the stream.
See also \helpref{wxDataOutputStream::WriteString}{wxdataoutputstreamwritestring}.

View File

@@ -60,30 +60,55 @@ little-endian order.
Writes the single byte {\it i8} to the stream.
\func{void}{Write8}{\param{const wxUint8 *}{buffer}, \param{size\_t }{size}}
Writes an array of bytes to the stream. The amount of bytes to write is
specified with the {\it size} variable.
\membersection{wxDataOutputStream::Write16}
\func{void}{Write16}{{\param wxUint16 }{i16}}
Writes the 16 bit unsigned integer {\it i16} to the stream.
\func{void}{Write16}{\param{const wxUint16 *}{buffer}, \param{size\_t }{size}}
Writes an array of 16 bit unsigned integer to the stream. The amount of
16 bit unsigned integer to write is specified with the {\it size} variable.
\membersection{wxDataOutputStream::Write32}
\func{void}{Write32}{{\param wxUint32 }{i32}}
Writes the 32 bit unsigned integer {\it i32} to the stream.
\func{void}{Write32}{\param{const wxUint32 *}{buffer}, \param{size\_t }{size}}
Writes an array of 32 bit unsigned integer to the stream. The amount of
32 bit unsigned integer to write is specified with the {\it size} variable.
\membersection{wxDataOutputStream::Write64}
\func{void}{Write64}{{\param wxUint64 }{i64}}
Writes the 64 bit unsigned integer {\it i64} to the stream.
\func{void}{Write64}{\param{const wxUint64 *}{buffer}, \param{size\_t }{size}}
Writes an array of 64 bit unsigned integer to the stream. The amount of
64 bit unsigned integer to write is specified with the {\it size} variable.
\membersection{wxDataOutputStream::WriteDouble}
\func{void}{WriteDouble}{{\param double }{f}}
Writes the double {\it f} to the stream using the IEEE format.
\func{void}{WriteDouble}{\param{const double *}{buffer}, \param{size\_t }{size}}
Writes an array of double to the stream. The amount of double to write is
specified with the {\it size} variable.
\membersection{wxDataOutputStream::WriteString}\label{wxdataoutputstreamwritestring}
\func{void}{WriteString}{{\param const wxString\&}{string}}