1 \section{\class{wxDataOutputStream
}}\label{wxdataoutputstream
}
3 This class provides functions that write binary data types in a
4 portable way. Data can be written in either big-endian or litte-endian
5 format, little-endian being the default on all architectures.
7 If you want to write data to text files (or streams) use
8 \helpref{wxTextOutputStream
}{wxtextoutputstream
} instead.
10 The << operator is overloaded and you can use this class like a standard
11 C++ iostream. See
\helpref{wxDataInputStream
}{wxdatainputstream
} for its
14 See also
\helpref{wxDataInputStream
}{wxdatainputstream
}.
16 \wxheading{Derived from
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxDataOutputStream::wxDataOutputStream
}\label{wxdataoutputstreamconstr
}
24 \func{}{wxDataOutputStream
}{\param{wxOutputStream\&
}{ stream
}}
26 Constructs a datastream object from an output stream. Only write methods will
29 \wxheading{Parameters
}
31 \docparam{stream
}{The output stream.
}
33 \membersection{wxDataOutputStream::
\destruct{wxDataOutputStream
}}
35 \func{}{\destruct{wxDataOutputStream
}}{\void}
37 Destroys the wxDataOutputStream object.
39 \membersection{wxDataOutputStream::BigEndianOrdered
}
41 \func{void
}{BigEndianOrdered
}{\param{bool
}{ be
\_order}}
43 If
{\it be
\_order} is TRUE, all data will be written in big-endian
44 order, e.g. for reading on a Sparc or from Java-Streams (which
45 always use big-endian order), otherwise data will be written in
48 \membersection{wxDataOutputStream::Write8
}
50 \func{void
}{Write8
}{{\param wxUint8
}{i8
}}
52 Writes the single byte
{\it i8
} to the stream.
54 \membersection{wxDataOutputStream::Write16
}
56 \func{void
}{Write16
}{{\param wxUint16
}{i16
}}
58 Writes the
16 bit integer
{\it i16
} to the stream.
60 \membersection{wxDataOutputStream::Write32
}
62 \func{void
}{Write32
}{{\param wxUint32
}{i32
}}
64 Writes the
32 bit integer
{\it i32
} to the stream.
66 \membersection{wxDataOutputStream::WriteDouble
}
68 \func{void
}{WriteDouble
}{{\param double
}{f
}}
70 Writes the double
{\it f
} to the stream using the IEEE format.
72 \membersection{wxDataOutputStream::WriteString
}
74 \func{void
}{WriteString
}{{\param const wxString\&
}{string
}}
76 Writes
{\it string
} to the stream. Actually, this method writes the size of
77 the string before writing
{\it string
} itself.