list<T> method

BorshListCodec<T> list<T>(
  1. BorshCodec<T> subtype,
  2. int length
)

Creates an array codec.

A codec can encode/decode data types to/from byte arrays Iterable<u8> and Buffers.

Implementation

BorshListCodec<T> list<T>(
  final BorshCodec<T> subtype,
  final int length,
) => BorshListCodec(subtype);