MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / packByte

Function packByte

app/src/IO/Checksum.cpp:243–246  ·  view source on GitHub ↗

* @brief Packs a single byte into a QByteArray. */

Source from the content-addressed store, hash-verified

241 * @brief Packs a single byte into a QByteArray.
242 */
243static 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.

Callers 1

Checksum.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected