RpcCborCodec class abstract interface

CBOR (Concise Binary Object Representation) implementation for RPC. Format reference: RFC 7049 https://tools.ietf.org/html/rfc7049

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

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

decode(Uint8List bytes, {int? maxItems}) → Map<String, dynamic>
Decodes CBOR bytes into Dart objects.
decodeUnsafe(Uint8List bytes, {int? maxItems}) → dynamic
Unsafe decoding of CBOR bytes. Returns dynamic instead of Map(String, dynamic). Intended for tests and special cases.
encode(Map<String, dynamic> value) → Uint8List
Encodes Map(String, dynamic) into CBOR bytes.
encodeUnsafe(dynamic value) → Uint8List
Encodes any value, not only a map, into CBOR bytes.

Constants

defaultMaxItems → const int
Data items one decode produces at most, unless the caller or the endpoint's RpcSecurityPolicy.maxDecodedItems says otherwise.