Debug label: Object.prototype.toString reports [object CborMap].
The number of entries in the map.
Internal
Get the entries of the map as an array, sorted in canonical ascending encoded-key order.
Public because the encoder, diagnostic formatter, and hex annotator consume it cross-module; not part of the supported surface.
Inserts a key-value pair into the map (replacing any entry whose key has the same canonical encoding). Any insertion order is accepted - entries are kept in canonical ascending encoded-key order.
Internal
The stored entry at position i in canonical ascending encoded-key
order; the caller keeps i within [0, size).
Positional access for the encoder and for structural equality,
which walk a map (or two maps in lockstep) without materializing
entriesArray; not part of the supported surface.
Internal
The encoded CBOR bytes of the key at position i - the bytes the entry
is sorted by, computed once when it was inserted.
The encoder writes these directly, as the reference's
Map::cbor_data writes its stored MapKey, instead of re-encoding the
key node; not part of the supported surface.
Iterate keys in canonical (sorted encoded-key) order.
Iterate values in canonical key order.
Internal
Append a key-value pair whose encoded key must sort strictly after every existing key.
The decoder's append path; not part of the supported surface.
Convert to a plain JavaScript Map of extracted native values.
Tagged values come back as Cbor nodes and nested maps as CborMap
(the CborNative asymmetries).
A deterministic CBOR map implementation.
Maps are always encoded with keys sorted lexicographically by their encoded CBOR representation, ensuring deterministic encoding.