diff options
Diffstat (limited to 'common/utils.h')
-rw-r--r-- | common/utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/utils.h b/common/utils.h index ec1d5b1..8565f17 100644 --- a/common/utils.h +++ b/common/utils.h | |||
@@ -26,6 +26,11 @@ namespace Sink { | |||
26 | 26 | ||
27 | QByteArray createUuid(); | 27 | QByteArray createUuid(); |
28 | 28 | ||
29 | // No copy is done on this functions. Therefore, the caller must not use the | ||
30 | // returned QByteArray after the size_t has been destroyed. | ||
31 | const QByteArray sizeTToByteArray(const size_t &); | ||
32 | size_t byteArrayToSizeT(const QByteArray &); | ||
33 | |||
29 | template <typename T> | 34 | template <typename T> |
30 | static QByteArray padNumber(T number); | 35 | static QByteArray padNumber(T number); |
31 | 36 | ||