23 #ifndef DOOMSEEKER_DATASTREAMOPERATORWRAPPER_H 24 #define DOOMSEEKER_DATASTREAMOPERATORWRAPPER_H 26 #include <QDataStream> 45 QDataStream *dataStream();
50 const QDataStream *dataStream()
const;
59 return remaining() > 0;
65 quint16 readQUInt16();
67 quint32 readQUInt32();
69 quint64 readQUInt64();
81 QByteArray readRaw(qint64 length);
90 QByteArray readRawAll();
113 QByteArray readRawUntilByte(
char stopByte);
123 QByteArray readRawMaxUntilByte(
char stopByte, qint64 length);
133 qint64 remaining()
const;
142 int skipRawData(
int len);
Wraps around QDataStream stream operators to provide cleaner reading interface.
bool hasRemaining() const
Returns true if there is any data remaining in the stream.