wxDataOutputStream
generated from ../src/mod_io/dostream.cpp
This class provides functions that write binary data types in a portable way.
Data can be written in either big-endian or little-endian format, little-endian
being the default on all architectures.
If you want to write data to text files (or streams) use wxTextOutputStream instead.
Remark :This class is not thoroughly tested. If you find problems let
it know on the project forum.
Constants
Constructor
wxDataOutputStream
wxDataOutputStream(Output)
| Name | Type | Default | Description |
|---|---|---|---|
| Output | wxOutputStream | An output stream |
Constructs a new wxDataOutputStream object.
Methods
bigEndianOrdered
bigEndianOrdered(Ordered)
| Name | Type | Default | Description |
|---|---|---|---|
| Ordered | Boolean |
If Ordered is true, all data will be read in big-endian order, such as written by programs on a big endian architecture (e.g. Sparc) or written by Java-Streams (which always use big-endian order).
write16
write16(Value)
| Name | Type | Default | Description |
|---|---|---|---|
| Value | Integer |
Writes a 16 bit integer to the stream.
write32
write32(Value)
| Name | Type | Default | Description |
|---|---|---|---|
| Value | Integer |
Writes a 32 bit integer to the stream.
write64
write64(Value)
| Name | Type | Default | Description |
|---|---|---|---|
| Value | Long |
Writes a 64 bit integer to the stream.
write8
write8(Value)
| Name | Type | Default | Description |
|---|---|---|---|
| Value | Integer |
Writes a 8 bit integer to the stream.
writeDouble
writeDouble(Value)
| Name | Type | Default | Description |
|---|---|---|---|
| Value | Double |
Writes a double (IEEE encoded) to a stream.
writeString
writeString(Value)
| Name | Type | Default | Description |
|---|---|---|---|
| Value | String |
Writes string as a line. Depending on the end-of-line mode the end of line ('\n') characters in the string are converted to the correct line ending terminator.
© 2002 - 2007 Franky Braem.