MajorType

CBOR major types.

Entries

Link copied to clipboard

Major type 0.

Link copied to clipboard

Major type 1.

Link copied to clipboard

Major type 2.

Link copied to clipboard

Major type 3.

Link copied to clipboard

Major type 4. 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. Items in an array do not need to all be of the same type. For example, an array that contains 10 items of any type would have an initial byte of 0b100_01010 (major type 4, additional information 10 for the length) followed by the 10 remaining items.

Link copied to clipboard

Major type 5.

Link copied to clipboard

Major type 6.

Link copied to clipboard

Major type 7.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Int

Functions

Link copied to clipboard
fun valueOf(value: String): MajorType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.