IPLDCodec class abstract

Interface for all IPLD codecs in dart_ipfs_core.

Codecs operate on plain Dart values: Map, List, Uint8List, String, int, double, bool, and null.

Constructors

IPLDCodec()

Properties

code → int
Multicodec integer code (e.g., 0x71 for DAG-CBOR).
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
Multicodec name (e.g., 'dag-cbor').
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Uint8List data) → Future
Decodes bytes into a Dart value.
encode(dynamic value) → Future<Uint8List>
Encodes value into bytes.
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