RawCodec class
Codec for raw binary data.
The raw multicodec (0x55) encodes a Uint8List as itself and decodes
bytes into a Uint8List.
- Implemented types
Constructors
- RawCodec()
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< Uint8List> -
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