#ifndef PACKETWRITER_H #define PACKETWRITER_H #include #include class PacketWriter { public: PacketWriter(int reservedSize = 0); const QByteArray &buffer() const { return m_buffer; } void writeU32(quint32 value); void writeBytes(const quint8 *input, int size); void writeString(const QString &string); private: QByteArray m_buffer; }; #endif // PACKETWRITER_H