Skip to main content

Module cbor

Module cbor 

Source
Expand description

Strict, definite-length RFC 8949 subset used on the wire (port of src/cbor).

Values mirror what JavaScript can hold: integers are limited to the safe range (|n| <= 2^53 - 1) and an integral float other than -0 is the same value as the integer.

Structs§

CborError
CborOptions

Enums§

Value

Constants§

DEFAULT_MAX_CBOR_BYTE_LENGTH
DEFAULT_MAX_CBOR_CONTAINER_LENGTH
DEFAULT_MAX_CBOR_DEPTH

Functions§

decode_cbor
Decodes exactly one item from the protocol’s strict RFC 8949 subset.
encode_cbor