array<T> method

BorshArrayCodec<T> array<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

BorshArrayCodec<T> array<T>(
  final BorshCodec<T> subtype,
  final int length,
) =>
    BorshArrayCodec(subtype, length);