DagCborCodec class
Codec for DAG-CBOR.
The DAG-CBOR multicodec (0x71) encodes IPLD data as canonical CBOR.
CID links are represented as CBOR tag 42 with the CID bytes prefixed by
0x00, matching the IPLD DAG-CBOR specification.
- Implemented types
Constructors
Properties
- code → int
-
Multicodec integer code (e.g.,
0x71for DAG-CBOR).no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Multicodec name (e.g., 'dag-cbor').
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
Uint8List data) → Future -
Decodes bytes into a Dart value.
override
-
encode(
dynamic value) → Future< Uint8List> -
Encodes
valueinto bytes.override -
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