qint16 op; gr>>op;opcode=(OpCodes)op;if (direction==Client) gr.skipRawData(2);
C++ (Qt)qint32 op;gr >> op;if (direction == Client) op = static_cast<quint16>(op);opcode = static_cast<OpCodes>(op);
C++ (Qt)qint32 op = 0;quint16 const& rop = op;if (direction == Client) gr >> rop;else gr >> op;opcode = static_cast<OpCodes>(op);