Create a decoder
the Uint8Array or Tokeniser to read from
if a Uint8Array is supplied as first argument, the optional
offset from which to start reading. Ignored otherwise.
if a Uint8Array is supplied as first argument, the optional
number of bytes to read. Ignored otherwise.
The tokeniser to extract values from
Check if more tokens can be read from the tokeniser
true if there are more tokens
Return the next value, parsed recursively.
If no tokens can be read, a read error will be thrown.
the next value
Return the next value, if its CBOR type is acceptable to cborTypePredicate
the next value
Copyright © 2025 DiffusionData Ltd. All Rights Reserved.
Provide a higher-level interface around Tokeniser, to enable the reading of complex values as represented in arrays/objects etc.