OptionalignoreIf true, ignore extra data at the end of the source buffer. Otherwise, decoder throws an error if extra data is detected.
To get the number of extra bytes left, use undecodedLength.
By default, false.
OptionalmaxMaximum allowed length of arrays (number of items).
By default, unlimited.
OptionalmaxMaximum allowed byte length of bytes or strings.
By default, unlimited.
OptionalmaxMaximum allowed depth of nested structures (arrays and maps). If exceeded, decoder throws an error.
By default, 128.
OptionalmaxMaximum allowed length of indefinite-length items (bytes, strings, arrays, maps).
Can be set to 0 to disallow indefinite-length items.
maxArrayLength, maxMapLength and maxByteLength options, if set, still apply.
If exceeded, decoder throws an error.
By default, unlimited.
OptionalmaxMaximum allowed length of maps (number of key-value pairs).
By default, unlimited.
OptionalnoIf true, instead of copying byte arrays return subarrays into CBOR buffer.
By default, false.
OptionalstrictIf true, allow only string and number keys for maps. Throw if encountered any other type.
By default, false.
OptionaltaggedTagged object decoders.
By default, DEFAULT_TAGGED_DECODERS, which converts tagged Tags.DateString and Tags.DateNumber to Date and Tags.RegExp to RegExp objects.
Pass empty array to disable tagged decoders.
OptionaluniqueIf true, map keys must be unique (after conversion to string). Throw if encountered duplicate keys.
By default, false.
Specifies options for decoder.