An array of data items. In other formats, arrays are also called lists, sequences, or tuples (a "CBOR sequence" is something slightly different, though [RFC8742]). The argument is the number of data items in the array.
A byte string. The number of bytes in the string is equal to the argument.
A map of pairs of data items. Maps are also called tables, dictionaries, hashes, or objects (in JSON).
A negative integer in the range -264..-1 inclusive. The value of the item is -1 minus the argument.
Simple values, Floating-point numbers and the "break" stop code.
A tagged data item ("tag") whose tag number, an integer in the range 0..264-1 inclusive, is the argument and whose enclosed data item (tag content) is the single encoded data item that follows the head.
An unsigned integer in the range 0..264-1 inclusive. The value of the encoded item is the argument itself.
A text string (Section 2) encoded as UTF-8 [RFC3629]. The number of bytes in the string is equal to the argument.
Generated using TypeDoc
Represents CBOR Major Types, as defined in RFC7049 section 2.1.