Enumeration CborMajorType

Represents CBOR Major Types as defined in RFC7049 section 2.1.

Enumeration Members

Array: 4

An array of data items. Arrays are also called lists, sequences, or tuples in other formats. (Note: A "CBOR sequence" is slightly different as described in RFC8742.) The argument is the number of data items in the array.

ByteString: 2

A byte string. The number of bytes in the string is equal to the argument.

Map: 5

A map of pairs of data items. Maps are also called tables, dictionaries, hashes, or objects (in JSON). The argument represents the number of key-value pairs in the map.

NegativeInteger: 1

A negative integer in the range -2^64..-1 inclusive. The value of the item is -1 minus the argument.

Simple: 7

Simple values, floating-point numbers, and the "break" stop code.

Tag: 6

A tagged data item ("tag"). The tag number is an integer in the range 0..2^64-1 inclusive, and the enclosed data item (tag content) is the single encoded data item that follows the tag.

UnsignedInteger: 0

An unsigned integer in the range 0..2^64-1 inclusive. The value of the encoded item is the argument itself.

Utf8String: 3

A UTF-8 encoded text string. The number of bytes in the string is equal to the argument.