decodeList
Decodes a CBOR encoded list. A decoder function is called with the bytes of every contained item (nothing is returning directly).
export function decodeList(
bytes: BytesLike,
itemDecoder: IndexedDecoder<T> | Decodeable<T>
): T[]
Arguments
Name | Type | Description |
---|---|---|
bytes | BytesLike | |
itemDecoder | IndexedDecoder<T> | Decodeable<T> |
Return value
T[]