Specifies options for decoder.
Specifies options for encoder.
Tagged value decoder.
If it can decode a Tagged value (by checking its tag property), it must return this value, otherwise must return undefined.
Tagged value encoder.
If it can encode the object, it must return a Tagged instance, otherwise must return undefined.
Default tagged values decoders.
Default tagged values encoders.
Decodes src from CBOR.
If noCopy is true, the returned Uint8Arrays will be a subarrays of src otherwise they will be newly allocated. It is not recommended to set it to true, due to the possibility of hard-to-detect bugs resulting from it and preventing chunks of memory from being garbage collected.
If ignoreExtraData is true, decoder will not throw an error if there's undecoded data at the end of the source.
Encodes the given value as CBOR.
Generated using TypeDoc