path: root/src/corelib/serialization/qcborcommon.h
diff options
authorUlf Hermann <>2019-10-29 13:50:22 +0100
committerUlf Hermann <>2019-12-12 10:42:27 +0100
commit23d23125068f98f4e6bb1ed3bc9899cefd8cbbf4 (patch)
tree0e3e0b023ba32c8105b4e94100e90d38ed16b96f /src/corelib/serialization/qcborcommon.h
parentb89f2ebd9543d4cf60821a9c3cc12547d7d2253e (diff)
Split cborstream feature in two
Reading of Cbor streams is substantially more complicated than writing as it requires float16 support. When writing Cbor, we can just choose to always write 32bit floats, even if we could compress the numbers into 16 bits. We need Cbor writing in the bootstrap library, but we cannot easily add float16 support. Furthermore, Cbor reading is required for plugin support, but not Cbor writing. It might make sense for some users to build a custom Qt with Cbor writing disabled. Therefore, provide two features, cborstreamreader and cborstreamwriter, split up the code in cborstream.{h|cpp} into several files, and enable Cbor writing in the bootstrap library. Change-Id: I15450afb0e328a84a22ebca9379cffc4f900a75a Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'src/corelib/serialization/qcborcommon.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/serialization/qcborcommon.h b/src/corelib/serialization/qcborcommon.h
index 3dfe50cd09..bec46399ce 100644
--- a/src/corelib/serialization/qcborcommon.h
+++ b/src/corelib/serialization/qcborcommon.h
@@ -148,6 +148,8 @@ inline uint qHash(QCborTag tag, uint seed = 0)
return qHash(quint64(tag), seed);
+enum class QCborNegativeInteger : quint64 {};