PortableRegistry class abstract
Abstract class representing a registry for portable type information in the Substrate framework.
- Implementers
Constructors
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
-
decode(
int id, List< int> bytes, {String? property}) → dynamic -
Decodes a byte array for the given type definition
id
. -
encode(
int id, dynamic value, {String? property}) → List< int> -
Encodes a value for the given type definition
id
. -
findEventRecordLookup(
{int? knownId}) → Si1TypeDefSequence -
Finds the lookup identifier for an event record sequence type definition.
w
knownId
is an optional known identifier. -
getValue(
{required int id, required Object? value, required bool fromTemplate}) → Object? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scaleType(
int id) → Si1Type -
Returns the versioned type definition for the given
id
. -
toString(
) → String -
A string representation of this object.
inherited
-
type(
int id) → PortableType -
Returns the portable type information for the given
id
. -
typeByPaths(
List< String> paths) → PortableType? -
typeDefLayout(
int lookup, dynamic value, {String? property}) → Layout -
Returns the Serialization layout of a type definition for the given
lookup
identifier andvalue
. -
typeInfo(
int id) → MetadataTypeInfo -
typeTemplate(
int id) → TypeTemlate -
Returns the template for the type definition for the given
id
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited