* @brief Packs a single byte into a QByteArray. */
| 241 | * @brief Packs a single byte into a QByteArray. |
| 242 | */ |
| 243 | static QByteArray packByte(uint8_t v) |
| 244 | { |
| 245 | return QByteArray(reinterpret_cast<const char*>(&v), sizeof(v)); |
| 246 | } |
| 247 | |
| 248 | /** |
| 249 | * @brief Packs a 16-bit unsigned integer into a big-endian QByteArray. |