Create a decoder
the Buffer
or Tokeniser
to read from
if a Buffer
is supplied as first argument, the optional
offset from which to start reading. Ignored otherwise.
if a Buffer
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
Provide a higher-level interface around Tokeniser, to enable the reading of complex values as represented in arrays/objects etc.