以下成员源于类 QDataStream are part of the Qt compatibility layer. We advise against using them in new code.
| QDataStream (QByteArray * array , int mode ) | |
| bool | eof () const |
| bool | isPrintableData () const |
| QDataStream & | readRawBytes (char * str , uint len ) |
| void | setPrintableData (bool enable ) |
| QDataStream & | writeRawBytes (const char * str , uint len ) |
Constructs a data stream that operates on the given array 。 mode specifies how the byte array is to be used, and is usually either QIODevice::ReadOnly or QIODevice::WriteOnly .
使用 atEnd () 代替。
In Qt 4, this function always returns false.
另请参阅 setPrintableData ().
使用 readRawData () 代替。
In Qt 3, this function enabled output in a human-readable format if enable was false.
In Qt 4, QDataStream no longer provides a human-readable output. This function does nothing.
另请参阅 isPrintableData ().
使用 writeRawData () 代替。