* @brief Packs a 32-bit unsigned integer into a big-endian QByteArray. */
| 269 | * @brief Packs a 32-bit unsigned integer into a big-endian QByteArray. |
| 270 | */ |
| 271 | static QByteArray packU32BE(uint32_t v) |
| 272 | { |
| 273 | uint8_t out[4]; |
| 274 | big_endian_memcpy(out, &v, sizeof(v)); |
| 275 | return QByteArray(reinterpret_cast<char*>(out), sizeof(out)); |
| 276 | } |
| 277 | |
| 278 | //-------------------------------------------------------------------------------------------------- |
| 279 | // Utility functions |
no test coverage detected