Multicodec enum

Represents multicodecs types.

Multicodecs are self-describing protocol/encoding streams defined by multiformats, used as unique identifiers for various data types or encodings.

A Multicodec consists of an identifier code, which describes the data format or encoding associated with that code.

Inheritance
Available extensions

Values

dagPb → const Multicodec
const Multicodec(0x55)
dabCbor → const Multicodec
const Multicodec(0x71)

Properties

code int
The code of this codec.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isDagCbor bool
Returns true if this codec is dag-cbor, otherwise false.
no setter
isDagPb bool
Returns true if this codec is dag-pb, otherwise false.
no setter
isNotDagCbor bool
Returns true if this codec is not dag-cbor, otherwise false.
no setter
isNotDagPb bool
Returns true if this codec is not dag-pb, otherwise false.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

hasCode(int code) bool
Returns true if code is supported, otherwise false.
valueOf(int code) Multicodec
Returns the specific codec based on code.

Constants

values → const List<Multicodec>
A constant List of the values in this enum, in order of their declaration.