back to io 

wxDataInputStream

generated from ../src/mod_io/distream.cpp

This class provides functions that read binary data types in a portable way. Data can be read in either big-endian or little-endian format, little-endian being the default on all architectures.

If you want to read data from text files (or streams) use wxTextInputStream instead.

Remark :This class is not thoroughly tested. If you find problems let it know on the project forum.

Constants

Constructor

wxDataInputStream

wxDataInputStream(Input)
 
Name Type Default Description
Input wxInputStream An input stream

Constructs a new wxDataInputStream 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).

read16

read16() : Integer
 

Reads a 16 bit integer from the stream.

read32

read32() : Integer
 

Reads a 32 bit integer from the stream.

read64

read64() : Integer
 

Reads a 64 bit integer from the stream.

read8

read8() : Integer
 

Reads a 8 bit integer from the stream.

readDouble

readDouble()
 

Reads a double (IEEE encoded) from a stream.

readString

readString() : String
 

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.




Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.