decodeList
export function decodeList<T>(
bytes: BytesLike,
itemDecoder: IndexedDecoder<T> | Decodeable<T>
): T[]
Decodes a CBOR encoded list. A decoder function is called with the bytes of every contained item (nothing is returning directly).
Type parameters
T
T extends any
Arguments
1. bytes
bytes: BytesLike
2. itemDecoder
itemDecoder: IndexedDecoder<T> | Decodeable<T>
Returns
T[]