QDataStream

#include <QtCore/QDataStream>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QDataStream


Overview

Public Types Index

enum ByteOrder

BigEndian QSysInfo::BigEndian, LittleEndian QSysInfo::LittleEndian

enum FloatingPointPrecision

SinglePrecision, DoublePrecision

enum Status

Ok, ReadPastEnd, ReadCorruptData, WriteFailed

enum Version

Qt_1_0 1, Qt_2_0 2, Qt_2_1 3, Qt_3_0 4, Qt_3_1 5, Qt_3_3 6, Qt_4_0 7, Qt_4_1 Qt_4_0, Qt_4_2 8, Qt_4_3 9, Qt_4_4 10, Qt_4_5 11, Qt_4_6 12, Qt_4_7 Qt_4_6, Qt_4_8 Qt_4_7

Public Functions Index

QDataStream ()
QDataStream (QIODevice *)
QDataStream (QByteArray *, QIODevice::OpenMode flags)
QDataStream (const QByteArray &)
virtual ~QDataStream ()
boolatEnd () const
ByteOrderbyteOrder () const
QIODevice *device () const
FloatingPointPrecisionfloatingPointPrecision () const
QDataStream &operator<< (qint8 i)
QDataStream &operator<< (quint8 i)
QDataStream &operator<< (qint16 i)
QDataStream &operator<< (quint16 i)
QDataStream &operator<< (qint32 i)
QDataStream &operator<< (quint32 i)
QDataStream &operator<< (qint64 i)
QDataStream &operator<< (quint64 i)
QDataStream &operator<< (bool i)
QDataStream &operator<< (float f)
QDataStream &operator<< (double f)
QDataStream &operator<< (const char *str)
QDataStream &operator>> (qint8 &i)
QDataStream &operator>> (quint8 &i)
QDataStream &operator>> (qint16 &i)
QDataStream &operator>> (quint16 &i)
QDataStream &operator>> (qint32 &i)
QDataStream &operator>> (quint32 &i)
QDataStream &operator>> (qint64 &i)
QDataStream &operator>> (quint64 &i)
QDataStream &operator>> (bool &i)
QDataStream &operator>> (float &f)
QDataStream &operator>> (double &f)
QDataStream &operator>> (char *&str)
QDataStream &readBytes (char *&, uint &len)
intreadRawData (char *, int len)
voidresetStatus ()
voidsetByteOrder (ByteOrder)
voidsetDevice (QIODevice *)
voidsetFloatingPointPrecision (FloatingPointPrecision precision)
voidsetStatus (Status status)
voidsetVersion (int)
intskipRawData (int len)
Statusstatus () const
voidunsetDevice ()
intversion () const
QDataStream &writeBytes (const char *, uint len)
intwriteRawData (const char *, int len)

Public Types

ByteOrder

BigEndian QSysInfo::BigEndian
LittleEndian QSysInfo::LittleEndian

FloatingPointPrecision

SinglePrecision
DoublePrecision

Status

Ok
ReadPastEnd
ReadCorruptData
WriteFailed

Version

Qt_1_0 1
Qt_2_0 2
Qt_2_1 3
Qt_3_0 4
Qt_3_1 5
Qt_3_3 6
Qt_4_0 7
Qt_4_1 Qt_4_0
Qt_4_2 8
Qt_4_3 9
Qt_4_4 10
Qt_4_5 11
Qt_4_6 12
Qt_4_7 Qt_4_6
Qt_4_8 Qt_4_7

Public Functions

QDataStream ()

QDataStream (

QDataStream (

QDataStream (

virtual~QDataStream ()

Destructor.

bool atEnd ()

ByteOrder byteOrder ()

QIODevice * device ()

FloatingPointPrecision floatingPointPrecision ()

QDataStream & operator<< (
  • qint8i)

QDataStream & operator<< (
  • quint8i)

QDataStream & operator<< (
  • qint16i)

QDataStream & operator<< (
  • quint16i)

QDataStream & operator<< (
  • qint32i)

QDataStream & operator<< (
  • quint32i)

QDataStream & operator<< (
  • qint64i)

QDataStream & operator<< (
  • quint64i)

QDataStream & operator<< (
  • booli)

QDataStream & operator<< (
  • floatf)

QDataStream & operator<< (
  • doublef)

QDataStream & operator<< (
  • const char *str)

QDataStream & operator>> (
  • qint8 &i)

QDataStream & operator>> (
  • quint8 &i)

QDataStream & operator>> (
  • qint16 &i)

QDataStream & operator>> (
  • quint16 &i)

QDataStream & operator>> (
  • qint32 &i)

QDataStream & operator>> (
  • quint32 &i)

QDataStream & operator>> (
  • qint64 &i)

QDataStream & operator>> (
  • quint64 &i)

QDataStream & operator>> (
  • bool &i)

QDataStream & operator>> (
  • float &f)

QDataStream & operator>> (
  • double &f)

QDataStream & operator>> (
  • char *&str)

QDataStream & readBytes (
  • char *&,
  • uint &len )

int readRawData (
  • char *,
  • intlen )

void resetStatus ()

void setByteOrder (
  • ByteOrder)

void setDevice (

void setFloatingPointPrecision (
  • FloatingPointPrecisionprecision)

void setStatus (
  • Statusstatus)

void setVersion (
  • int)

int skipRawData (
  • intlen)

Status status ()

void unsetDevice ()

int version ()

QDataStream & writeBytes (
  • const char *,
  • uintlen )

int writeRawData (
  • const char *,
  • intlen )

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus