Creates a new, empty CBOR Map. Optionally initializes from a JavaScript Map.
Optionalmap: Map<unknown, unknown>Returns the number of entries in the map. Matches Rust's Map::len().
Alias for length to match JavaScript Map API. Also matches Rust's Map::len().
Get the entries of the map as an array. Keys are sorted in lexicographic order of their encoded CBOR bytes.
StaticnewCreates a new, empty CBOR Map. Matches Rust's Map::new().
Returns the number of entries in the map. Matches Rust's Map::len().
Checks if the map is empty. Matches Rust's Map::is_empty().
Gets an iterator over the entries of the CBOR map, sorted by key. Key sorting order is lexicographic by the key's binary-encoded CBOR. Matches Rust's Map::iter().
A deterministic CBOR map implementation.
Maps are always encoded with keys sorted lexicographically by their encoded CBOR representation, ensuring deterministic encoding.