CborSimpleCodec class Null safety

A simple codec for CBOR, using CborSimpleEncoder and CborSimpleDecoder.

To see how CBOR values are transformed from and into objects, verify the documentation of both CborValue.CborValue and CborValue.toObject.

Inheritance

Constructors

CborSimpleCodec({bool encodeDateTimeEpoch = false, bool parseDateTime = true, bool decodeBase64 = true, bool parseUri = true, Object? toEncodable(dynamic object)?})
Create a CBOR simple codec.
const

Properties

decoder CborSimpleDecoder
Returns the decoder of this, converting from T to S.
read-onlyoverride
encoder CborSimpleEncoder
Returns the encoder from S to T.
read-onlyoverride
hashCode int
The hash code for this object.
read-onlyinherited
inverted Codec<List<int>, Object?>
Inverts this.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

decode(List<int> encoded, {bool? parseDateTime, bool? decodeBase64, bool? parseUri}) Object?
Decodes encoded data.
override
encode(Object? input, {bool? dateTimeEpoch, Object? toEncodable(dynamic object)?}) List<int>
Encodes input.
override
fuse<R>(Codec<List<int>, R> other) Codec<Object?, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited