BorshTupleSizedCodec class
Tuple Sized Codec
A codec for fixed-length arrays with multiple sized data types.
- Inheritance
- Mixed-in types
Constructors
-
BorshTupleSizedCodec(List<
BorshCodecFixedSized> fields) -
Creates a codec for fixed-length arrays with multiple sized data types.
const
Properties
- byteLength → int
-
The number of bytes required to store
anyinstance ofT(i.e. max size).no setteroverride - decoder → BorshTupleSizedDecoder
-
Returns the decoder of
this, converting fromTtoS.no setter - encoder → BorshTupleSizedEncoder
-
Returns the encoder from
StoT.no setter -
fields
→ List<
BorshCodecFixedSized> -
The field type codecs.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
Iterable< int> , Tuple> -
Inverts
this.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cOption(
) → BorshOptionSizedCodec< Tuple> -
Converts this codec to an c-option code of type
T.inherited -
decode(
Iterable< int> encoded) → Tuple -
Decodes
encodeddata.inherited -
encode(
Tuple input) → Iterable< int> -
Encodes
input.inherited -
fuse<
R> (Codec< Iterable< other) → Codec<int> , R>Tuple, R> -
Fuses
thiswithother.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
option(
) → BorshOptionSizedCodec< Tuple> -
Converts this codec to an option code of type
T.inherited -
pack(
BufferWriter buffer, Tuple input) → void -
Writes
inputtobuffer.inherited -
size(
List input) → int -
Returns the serialized byte length of
input. -
toString(
) → String -
A string representation of this object.
inherited
-
unpack(
BufferReader buffer) → Tuple -
Reads
Tfrombuffer.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited