This class provides functions that read data types in a portable way. So, a file written by an Intel processor can be read by a Sparc or anything else.
Derived from
wxFilterInputStream
wxInputStream
wxStreamBase
Include files
<wx/datstrm.h>
Members
wxDataInputStream::wxDataInputStream
wxDataInputStream::~wxDataInputStream
wxDataInputStream::Read8
wxDataInputStream::Read16
wxDataInputStream::Read32
wxDataInputStream::ReadDouble
wxDataInputStream::ReadLine
wxDataInputStream::ReadString
wxDataInputStream(wxInputStream& stream)
Constructs a datastream object from an input stream. Only read methods will be available.
Parameters
stream
~wxDataInputStream()
Destroys the wxDataInputStream object.
unsigned char Read8()
Reads a single byte from the stream.
unsigned short Read16()
Reads a 16 bit integer from the stream.
unsigned long Read32()
Reads a 32 bit integer from the stream.
double ReadDouble()
Reads a double (IEEE encoded) from the stream.
wxString wxDataInputStream::ReadLine()
Reads a line from the stream. A line is a string which ends with
n or
r
n.
wxString wxDataInputStream::ReadString()
Reads a string from a stream. Actually, this function first reads a long integer specifying the length of the string (without the last null character) and then reads the string.