QDataStream类提供了二进制数据到QIODevice的串行化。
#include
所 有成员函数的列表。

公有成员

QDataStream()QDataStream( QIODevice * d )QDataStream( QByteArray a, int mode )virtual~QDataStream()QIODevice *device() constvoidsetDevice( QIODevice * d )voidunsetDevice()boolatEnd() const
bool eof () const(obsolete)
enumByteOrderintbyteOrder() constvoidsetByteOrder( int bo )boolisPrintableData() constvoidsetPrintableData( bool enable )intversion() constvoidsetVersion( int v )QDataStream &operator>>( Q_INT8 & i )QDataStream &operator>>( Q_UINT8 & i )QDataStream &operator>>( Q_INT16 & i )QDataStream &operator>>( Q_UINT16 & i )QDataStream &operator>>( Q_INT32 & i )QDataStream &operator>>( Q_UINT32 & i )QDataStream &operator>>( Q_LONG & i )QDataStream &operator>>( Q_ULONG & i )QDataStream &operator>>( float & f )QDataStream &operator>>( double & f )QDataStream &operator>>( char *& s )QDataStream &operator