CborDecoder class
A CBOR decoder.
If the input is malformed, the decoder will throw CborMalformedException.
The decoder will not throw if the input is invalid but well-formed. However, operations on CborValue may throw if invalid data is used.
This decoder supports startChunkedConversion and can therefore be used as a stream transformer. The decoder operates over a CBOR sequence in this mode.
Constructors
- CborDecoder()
-
Create a CBOR decoder.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bind(
Stream< List< stream) → Stream<int> >CborValue> -
Transforms the provided
stream
.inherited -
cast<
RS, RT> () → Converter< RS, RT> -
Provides a
Converter<RS, RT>
view of this stream transformer.inherited -
convert(
List< int> input) → CborValue -
Converts
input
and returns the result of the conversion.override -
fuse<
TT> (Converter< CborValue, TT> other) → Converter<List< int> , TT> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startChunkedConversion(
Sink< CborValue> sink) → ByteConversionSink -
Starts a chunked conversion.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited