This class provides functions that write data types in a portable way. So, a file written by an Intel processor can be read by a Sparc or anything else.
Members
wxDataOutputStream::wxDataOutputStream
wxDataOutputStream::~wxDataOutputStream
wxDataOutputStream::Write8
wxDataOutputStream::Write16
wxDataOutputStream::Write32
wxDataOutputStream::WriteDouble
wxDataOutputStream::WriteLine
wxDataOutputStream::WriteString
wxDataInputStream(wxOutputStream& stream)
Constructs a datastream object from an output stream. Only read methods will be available.
Parameters
stream
~wxDataOutputStream()
Destroys the wxDataOutputStream object.
void wxDataOutputStream::Write8(unsigned char i8)
Writes the single byte i8 to the stream.
void wxDataOutputStream::Write16(unsigned short i16)
Writes the 16 bit integer i16 to the stream.
void wxDataOutputStream::Write32(unsigned long i32)
Writes the 32 bit integer i32 to the stream.
void wxDataOutputStream::WriteDouble(double f)
Writes the double f to the stream using the IEEE format.
void wxDataOutputStream::WriteLine(const wxString& string)
Writes string as a line. Depending on the operating system, it adds \n or \r\n.
void wxDataOutputStream::WriteString(const wxString& string)
Writes string to the stream. Actually, this method writes the size of the string before writing string itself.