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.
Get the STORED Cbor node for a key, or undefined if absent.
This is symmetric with entries() - no hidden native extraction, no
unwitnessed generics. To read a native value, compose explicitly:
asNumber(map.get("age")); // number | undefined, checked
extractCbor(map.getOrThrow("age")); // CborNative, throws if absent
Iterate keys in canonical (sorted encoded-key) order.
Iterate values in canonical key order.
Internal
Inserts the next key-value pair into the map during decoding. This is used for efficient map building during CBOR decoding. Throws if the key is not in ascending order or is a duplicate.
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.