When constructing the commented version of this tag, should the contents be written as well? If true, the comment function should output the contents values itself (only used for tag 24 so far).
Static
clearRemove the encoder for this tag number.
Tag number.
Old decoder, if there was one.
Static
getGet all registered decoders clone of the map.
Static
getGet the decoder for a given tag number.
The tag number.
The decoder function, if there is one.
Static
registerRegister a decoder for a give tag number.
The tag number.
Decoder function.
Optional
description: stringIf provided, use this when commenting to add a type name in parens after the tag number.
Old decoder for this tag, if there was one.
Iterate over just the contents, so that the tag works more like an array. Yields One time, the contained value.
Convert this tagged value to a useful data type, if possible.
Options for decoding.
The converted value.
Makes Tag act like an array, so that no special casing is needed when the tag's contents are available.
The value associated with the tag.
Always returns 1.
If an object implements this interface, this method will be used to serialize the object when encoding. Return undefined if you don't want any further serialization to take place. Return an array of [tag, value] if you would like default serialization, where if tag is not NaN, a CBOR tag will be written before the value.
A CBOR tagged value.
See
IANA Registry