arraySized<T> method

BorshArraySizedCodec<T> arraySized<T>(
  1. BorshCodecFixedSized<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

BorshArraySizedCodec<T> arraySized<T>(
  final BorshCodecFixedSized<T> subtype,
  final int length,
) => BorshArraySizedCodec(subtype, length);