BorshArrayCodec<T> class
Array Codec
A codec for fixed-length arrays.
- Inheritance
-
- Object
- Codec<
List< T> , Iterable<int> > - BorshCodec<
List< T> > - BorshArrayTypedCodec<
T, BorshCodec< T> > - BorshArrayCodec
Constructors
-
BorshArrayCodec.new(BorshCodec<
T> subtype, int length) -
Creates a codec for fixed-length arrays.
const
Properties
-
decoder
→ BorshArrayDecoder<
T> -
Returns the decoder of
this
, converting fromT
to S.no setteroverride -
encoder
→ BorshArrayEncoder<
T> -
Returns the encoder from S to
T
.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
Iterable< int> , List<T> > -
Inverts
this
.no setterinherited - length → int
-
The number of items in the array.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subtype
→ BorshCodec<
T> -
The subtype's codec.
finalinherited
Methods
-
decode(
Iterable< int> encoded) → List<T> -
Decodes
encoded
data.inherited -
encode(
List< T> input) → Iterable<int> -
Encodes
input
.inherited -
fuse<
R> (Codec< Iterable< other) → Codec<int> , R>List< T> , R> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pack(
BufferWriter buffer, List< T> input) → void -
Writes
input
tobuffer
.inherited -
size(
List< T> input) → int -
Returns the serialized byte length of
input
.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
unpack(
BufferReader buffer) → List< T> -
Reads
T
frombuffer
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited