MCPcopy Create free account
hub / github.com/KDAB/GammaRay / writeNumber

Function writeNumber

common/message.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59template<typename T>
60static void writeNumber(QIODevice *device, T value)
61{
62 value = qToBigEndian(value);
63 const int writeSize = device->write(( char * )&value, sizeof(T));
64 Q_UNUSED(writeSize);
65 Q_ASSERT(writeSize == sizeof(T));
66}
67
68using namespace GammaRay;
69

Callers 1

writeMethod · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected