<QtCborCommon>▲
-
Header: QtCborCommon
Detailed Description▲
Type Documentation▲
enum QCborKnownTags▲
This enum contains a list of CBOR tags, known at the time of the Qt implementation. This list is not meant to be complete and contains only tags that are either backed by an RFC or specifically used by the Qt implementation.
The authoritative list is maintained by IANA in the CBOR tag registry.
Constant |
Value |
Description |
---|---|---|
QCborKnownTags::DateTimeString |
0 |
A date and time string, formatted according to RFC 3339, as refined by RFC 4287. It is the same format as Qt::ISODate and Qt::ISODateWithMs. |
QCborKnownTags::UnixTime_t |
1 |
A numerical representation of seconds elapsed since 1970-01-01T00:00Z. |
QCborKnownTags::PositiveBignum |
2 |
A positive number of arbitrary length, encoded as a byte array in network byte order. For example, the number 264 is represented by a byte array containing the byte value 0x01 followed by 8 zero bytes. |
QCborKnownTags::NegativeBignum |
3 |
A negative number of arbirary length, encoded as the absolute value of that number, minus one. For example, a byte array containing byte value 0x02 followed by 8 zero bytes represents the number -265 - 1. |
QCborKnownTags::Decimal |
4 |
A decimal fraction, encoded as an array of two integers: the first is the exponent of the power of 10, the second the integral mantissa. The value 273.15 would be encoded as array [-2, 27315]. |
QCborKnownTags::Bigfloat |
5 |
Similar to Decimal, but the exponent is a power of 2 instead. |
QCborKnownTags::COSE_Encrypt0 |
16 |
An Encrypt0 map as specified by RFC 8152 (CBOR Object Signing and Encryption). |
QCborKnownTags::COSE_Mac0 |
17 |
A Mac0 map as specified by RFC 8152 (CBOR Object Signing and Encryption). |
QCborKnownTags::COSE_Sign1 |
18 |
A Sign1 map as specified by RFC 8152 (CBOR Object Signing and Encryption). |
QCborKnownTags::ExpectedBase64url |
21 |
Indicates that the byte array should be encoded using Base64url if the stream is converted to JSON. |
QCborKnownTags::ExpectedBase64 |
22 |
Indicates that the byte array should be encoded using Base64 if the stream is converted to JSON. |
QCborKnownTags::ExpectedBase16 |
23 |
Indicates that the byte array should be encoded using Base16 (hex) if the stream is converted to JSON. |
QCborKnownTags::EncodedCbor |
24 |
Indicates that the byte array contains a CBOR stream. |
QCborKnownTags::Url |
32 |
Indicates that the string contains a URL. |
QCborKnownTags::Base64url |
33 |
Indicates that the string contains data encoded using Base64url. |