Compatibility Members for QDataStream

以下成员源于类 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 )

成员函数文档编制

QDataStream:: QDataStream ( QByteArray * array , int mode )

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 .

bool QDataStream:: eof () const

使用 atEnd () 代替。

bool QDataStream:: isPrintableData () const

In Qt 4, this function always returns false.

另请参阅 setPrintableData ().

QDataStream & QDataStream:: readRawBytes ( char * str , uint len )

使用 readRawData () 代替。

void QDataStream:: setPrintableData ( bool enable )

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 ().

QDataStream & QDataStream:: writeRawBytes (const char * str , uint len )

使用 writeRawData () 代替。