vec<T> method

BorshVecCodec<T> vec<T>(
  1. BorshCodec<T> codec
)

Creates an vec codec.

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

Implementation

BorshVecCodec<T> vec<T>(
  final BorshCodec<T> codec,
) =>
    BorshVecCodec(codec);