CborSimpleCodec class

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.
no setteroverride
encoder CborSimpleEncoder
Returns the encoder from S to T.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<List<int>, Object?>
Inverts this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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