BorshStructCodec class
Struct Codec
A codec for borsh serializable objects.
- Inheritance
-
- Object
- Codec<
Map< String, dynamic> , Iterable<int> > - BorshCodec<
Map< String, dynamic> > - BorshStructTypedCodec<
BorshCodec> - BorshStructCodec
Constructors
-
BorshStructCodec.new(Map<
String, BorshCodec> schema) -
Creates a codec for borsh serializable objects.
const
Properties
- decoder → BorshStructDecoder
-
Returns the decoder of
this
, converting fromT
to S.no setteroverride - encoder → BorshStructEncoder
-
Returns the encoder from S to
T
.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
Iterable< int> , Map<String, dynamic> > -
Inverts
this
.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
schema
→ Map<
String, BorshCodec> -
The ordered field codecs.
finalinherited
Methods
-
decode(
Iterable< int> encoded) → Map<String, dynamic> -
Decodes
encoded
data.inherited -
encode(
Map< String, dynamic> input) → Iterable<int> -
Encodes
input
.inherited -
fuse<
R> (Codec< Iterable< other) → Codec<int> , R>Map< String, dynamic> , R> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pack(
BufferWriter buffer, Map< String, dynamic> input) → void -
Writes
input
tobuffer
.inherited -
size(
Map< String, dynamic> input) → int -
Returns the serialized byte length of
input
.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
unpack(
BufferReader buffer) → Map< String, dynamic> -
Reads
T
frombuffer
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited