Module cbor_data::constants[][src]

Constants

Simple value: FALSE

half-precision floating-point value in the next two bytes

single-precision floating-point value in the next four bytes

double-precision floating-point value in the next eight bytes

Simple value: NULL

Simple value encoded as following byte

Simple value: TRUE

Simple value: UNDEFINED

Major type 4: array

Major type 2: byte string

Major type 5: dictionary

Major type 7: simple values and floating-point numbers

Major type 1: negative number of up to 64 bit

Major type 0: positive number of up to 64 bit

Major type 3: utf-8 string

Major type 6: tag applied to the following item, with a value of up to 64 bit

String tag: base64 encoded byte string, see RFC 4648

String tag: base64url encoded byte string, see RFC 4648

Array tag: big decimal (i.e. base 10), encoded as integer exponent and any number mantissa

Array tag: big float (i.e. base 2), encoded as integer exponent and any number mantissa

Byte string tag: negative bigint, big endian encoding

Byte string tag: positive bigint, big endian encoding

Byte string tag: contents shall be interpreted as nested CBOR item

Marker for tagging the top-level CBOR item such that it cannot be misinterpreted as JSON

Integer or floating-point tag: seconds since the Unix epoch (possibly negative)

String tag: ISO8601 timestamp, see RFC 4287 §3.3

String tag: mime encoded payload, including headers, see RFC 2045

String tag: regular expression (PCRE or ECMA)

String tag: RFC 3986 URI