Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QVersionedPacket< Connector > Class Template Reference

#include <qversionedpacket_p.h>

+ Inheritance diagram for QVersionedPacket< Connector >:
+ Collaboration diagram for QVersionedPacket< Connector >:

Public Member Functions

 QVersionedPacket (const QByteArray &ba)
 
 QVersionedPacket ()
 
- Public Member Functions inherited from QPacket
 QPacket (int version)
 Constructs an empty write-only packet.
 
 QPacket (int version, const QByteArray &ba)
 Constructs a read-only packet.
 
const QByteArraydata () const
 Returns a reference to the raw packet data.
 
QByteArray squeezedData () const
 Returns a copy of the raw packet data, with extra reserved space removed.
 
void clear ()
 Clears the packet, discarding any data.
 
- Public Member Functions inherited from QDataStream
enum Version QT7_ONLY (:quint8)
 
enum Status QT7_ONLY (:quint8)
 
enum FloatingPointPrecision QT7_ONLY (:quint8)
 
 QDataStream ()
 Constructs a data stream that has no I/O device.
 
 QDataStream (QIODevice *)
 Constructs a data stream that uses the I/O device d.
 
 QDataStream (QByteArray *, OpenMode flags)
 Constructs a data stream that operates on a byte array, a.
 
 QDataStream (const QByteArray &)
 Constructs a read-only data stream that operates on byte array a.
 
 ~QDataStream ()
 Destroys the data stream.
 
QIODevicedevice () const
 Returns the I/O device currently set, or \nullptr if no device is currently set.
 
void setDevice (QIODevice *)
 void QDataStream::setDevice(QIODevice *d)
 
bool atEnd () const
 Returns true if the I/O device has reached the end position (end of the stream or file) or if there is no I/O device set; otherwise returns false.
 
Status status () const
 Returns the status of the data stream.
 
void setStatus (Status status)
 Sets the status of the data stream to the status given.
 
void resetStatus ()
 Resets the status of the data stream.
 
FloatingPointPrecision floatingPointPrecision () const
 Returns the floating point precision of the data stream.
 
void setFloatingPointPrecision (FloatingPointPrecision precision)
 Sets the floating point precision of the data stream to precision.
 
ByteOrder byteOrder () const
 Returns the current byte order setting – either BigEndian or LittleEndian.
 
void setByteOrder (ByteOrder)
 Sets the serialization byte order to bo.
 
int version () const
 Returns the version number of the data serialization format.
 
void setVersion (int)
 Sets the version number of the data serialization format to v, a value of the \l Version enum.
 
QDataStreamoperator>> (char &i)
 
QDataStreamoperator>> (qint8 &i)
 Reads a signed byte from the stream into i, and returns a reference to the stream.
 
QDataStreamoperator>> (quint8 &i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads an unsigned byte from the stream into i, and returns a reference to the stream.
 
QDataStreamoperator>> (qint16 &i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads a signed 16-bit integer from the stream into i, and returns a reference to the stream.
 
QDataStreamoperator>> (quint16 &i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads an unsigned 16-bit integer from the stream into i, and returns a reference to the stream.
 
QDataStreamoperator>> (qint32 &i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads a signed 32-bit integer from the stream into i, and returns a reference to the stream.
 
QDataStreamoperator>> (quint32 &i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads an unsigned 32-bit integer from the stream into i, and returns a reference to the stream.
 
QDataStreamoperator>> (qint64 &i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads a signed 64-bit integer from the stream into i, and returns a reference to the stream.
 
QDataStreamoperator>> (quint64 &i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads an unsigned 64-bit integer from the stream, into i, and returns a reference to the stream.
 
QDataStreamoperator>> (std::nullptr_t &ptr)
 
QDataStreamoperator>> (bool &i)
 Reads a boolean value from the stream into i.
 
QDataStreamoperator>> (float &f)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads a floating point number from the stream into f, using the standard IEEE 754 format.
 
QDataStreamoperator>> (double &f)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads a floating point number from the stream into f, using the standard IEEE 754 format.
 
QDataStreamoperator>> (char *&str)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads string s from the stream and returns a reference to the stream.
 
QDataStreamoperator>> (char16_t &c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QDataStreamoperator>> (char32_t &c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QDataStreamoperator<< (char i)
 
QDataStreamoperator<< (qint8 i)
 Writes a signed byte, i, to the stream and returns a reference to the stream.
 
QDataStreamoperator<< (quint8 i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Writes an unsigned byte, i, to the stream and returns a reference to the stream.
 
QDataStreamoperator<< (qint16 i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Writes a signed 16-bit integer, i, to the stream and returns a reference to the stream.
 
QDataStreamoperator<< (quint16 i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Writes an unsigned 16-bit integer, i, to the stream and returns a reference to the stream.
 
QDataStreamoperator<< (qint32 i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Writes a signed 32-bit integer, i, to the stream and returns a reference to the stream.
 
QDataStreamoperator<< (quint32 i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Writes an unsigned integer, i, to the stream as a 32-bit unsigned integer (quint32).
 
QDataStreamoperator<< (qint64 i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Writes a signed 64-bit integer, i, to the stream and returns a reference to the stream.
 
QDataStreamoperator<< (quint64 i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Writes an unsigned 64-bit integer, i, to the stream and returns a reference to the stream.
 
QDataStreamoperator<< (std::nullptr_t)
 
template<typename T , std::enable_if_t< std::is_same_v< T, bool >, bool > = true>
QDataStreamoperator<< (T i)
 
QDataStreamoperator<< (float f)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Writes a floating point number, f, to the stream using the standard IEEE 754 format.
 
QDataStreamoperator<< (double f)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Writes a floating point number, f, to the stream using the standard IEEE 754 format.
 
QDataStreamoperator<< (const char *str)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Writes the '\0'-terminated string s to the stream and returns a reference to the stream.
 
QDataStreamoperator<< (char16_t c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QDataStreamoperator<< (char32_t c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QDataStreamreadBytes (char *&, qint64 &len)
 
qint64 readRawData (char *, qint64 len)
 Reads at most len bytes from the stream into s and returns the number of bytes read.
 
QDataStreamwriteBytes (const char *, qint64 len)
 Writes the length specifier len and the buffer s to the stream and returns a reference to the stream.
 
qint64 writeRawData (const char *, qint64 len)
 Writes len bytes from s to the stream.
 
qint64 skipRawData (qint64 len)
 
void startTransaction ()
 
bool commitTransaction ()
 
void rollbackTransaction ()
 
void abortTransaction ()
 
bool isDeviceTransactionStarted () const
 

Additional Inherited Members

- Public Types inherited from QDataStream
enum  ByteOrder { BigEndian = QSysInfo::BigEndian , LittleEndian = QSysInfo::LittleEndian }
 The byte order used for reading/writing the data. More...
 
- Public Types inherited from QIODeviceBase
enum  OpenModeFlag {
  NotOpen = 0x0000 , ReadOnly = 0x0001 , WriteOnly = 0x0002 , ReadWrite = ReadOnly | WriteOnly ,
  Append = 0x0004 , Truncate = 0x0008 , Text = 0x0010 , Unbuffered = 0x0020 ,
  NewOnly = 0x0040 , ExistingOnly = 0x0080
}
 This enum is used with QIODevice::open() to describe the mode in which a device is opened. More...
 
- Protected Member Functions inherited from QIODeviceBase
 ~QIODeviceBase ()=default
 

Detailed Description

template<class Connector>
class QVersionedPacket< Connector >

Definition at line 24 of file qversionedpacket_p.h.

Constructor & Destructor Documentation

◆ QVersionedPacket() [1/2]

template<class Connector >
QVersionedPacket< Connector >::QVersionedPacket ( const QByteArray & ba)
inline

Definition at line 27 of file qversionedpacket_p.h.

◆ QVersionedPacket() [2/2]

template<class Connector >
QVersionedPacket< Connector >::QVersionedPacket ( )
inline

Definition at line 28 of file qversionedpacket_p.h.


The documentation for this class was generated from the following file: