RpcCodec<T extends IRpcSerializable> class

CBOR serializer for RPC messages.

Implemented types

Constructors

RpcCodec(T fromJson(Map<String, dynamic> json))
Creates a CBOR serializer; fromJson builds an object from the decoded map.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

deserialize(Uint8List bytes) → T
Deserializes bytes into an object of type T.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(T message) → Uint8List
Serializes an object of type T to a byte sequence.
override
toString() → String
A string representation of this object.
inherited

Operators

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