1 \section{\class{wxDataStream
}}\label{wxdatastream
}
3 This class provides functions that read and write integers or double in a
4 portable way. So, a file written by an Intel processor can be read by a
5 Sparc or anything else.
7 \latexignore{\rtfignore{\wxheading{Members
}}}
9 \membersection{wxDataStream::wxDataStream
}\label{wxwaveconstr
}
11 \func{}{wxDataStream
}{\param{istream\&
}{ stream
}}
13 Constructs a datastream object from a C++ input stream. Only read methods will
16 \wxheading{Parameters
}
18 \docparam{stream
}{The C++ input stream.
}
20 \func{}{wxDataStream
}{\param{istream\&
}{ stream
}}
22 Constructs a datastream object from a C++ input stream. Only read methods will
25 \wxheading{Parameters
}
27 \docparam{stream
}{The C++ input stream.
}
29 \membersection{wxDataStream::
\destruct{wxDataStream
}}
31 \func{}{\destruct{wxDataStream
}}{\void}
33 Destroys the wxDataStream object.
35 \membersection{wxDataStream::Read8
}
37 \func{unsigned char
}{Read8
}{\void}
39 Reads a single byte from the stream.
41 \membersection{wxDataStream::Read16
}
43 \func{unsigned short
}{Read16
}{\void}
45 Reads a
16 bit integer from the stream.
47 \membersection{wxDataStream::Read32
}
49 \func{unsigned long
}{Read32
}{\void}
51 Reads a
32 bit integer from the stream.
53 \membersection{wxDataStream::ReadDouble
}
55 \func{double
}{ReadDouble
}{\void}
57 Reads a double (IEEE encoded) from the stream.
59 \membersection{wxDataStream::ReadString
}
61 \func{wxString
}{wxDataStream::ReadString
}{\void}
63 Reads a string from a stream. Actually, this function first reads a byte
64 specifying the length of the string (without the last null character) and then
67 \membersection{wxDataStream::ReadLine
}
69 \func{wxString
}{wxDataStream::ReadLine
}{\void}
71 Reads a line from the stream. A line is a string which ends with \
\n or \
\r\
\n.
73 \membersection{wxDataStream::Write8
}
75 \func{void
}{wxDataStream::Write8
}{{\param unsigned char
}{i8
}}
77 Writes the single byte
{\it i8
} to the stream.
79 \membersection{wxDataStream::Write16
}
81 \func{void
}{wxDataStream::Write16
}{{\param unsigned short
}{i16
}}
83 Writes the
16 bit integer
{\it i16
} to the stream.
85 \membersection{wxDataStream::Write32
}
87 \func{void
}{wxDataStream::Write32
}{{\param unsigned long
}{i32
}}
89 Writes the
32 bit integer
{\it i32
} to the stream.
91 \membersection{wxDataStream::WriteDouble
}
93 \func{void
}{wxDataStream::WriteDouble
}{{\param double
}{f
}}
95 Writes the double
{\it f
} to the stream using the IEEE format.
97 \membersection{wxDataStream::WriteString
}
99 \func{void
}{wxDataStream::WriteString
}{{\param const wxString\&
}{string
}}
101 Writes
{\it string
} to the stream. Actually, this method writes the size of
102 the string before writing
{\it string
} itself.
104 \membersection{wxDataStream::WriteLine
}
106 \func{void
}{wxDataStream::WriteLine
}{{\param const wxString\&
}{string
}}
108 Writes
{\it string
} as a line. Depending on the operating system, it adds
113 %%% TeX-master: "referenc"