PeerInfoCodec<H, N> class

PeerInfo Scale Codec

Mixed-in types

Constructors

PeerInfoCodec({required Codec<H> hashCodec, required Codec<N> numberCodec})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hashCodec Codec<H>
final
numberCodec Codec<N>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Input input) PeerInfo<H, N>
override
encode(PeerInfo<H, N> value) Uint8List
Convert self to an owned vector.
inherited
encodeTo(PeerInfo<H, N> value, Output output) → void
Convert self to a slice and append it to the destination.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sizeHint(PeerInfo<H, N> value) int
If possible give a hint of expected size of the encoding.
override
toString() String
A string representation of this object.
inherited

Operators

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