Function decodeList

  • This method can be used to parse a TLV8 encoded list that was concatenated.

    If you are thinking about using this method, try to refactor the code to use decodeWithLists instead of decode. The single reason of this method's existence are the shortcomings decode, as it concatenates multiple tlv8 list entries into a single Buffer. This method can be used to undo that, by specifying the concatenated buffer and the tlv id of the element that should mark the beginning of a new tlv8 list entry.

    Parameters

    • data: Buffer

      The concatenated tlv8 list entries (probably output of decode).

    • entryStartId: number

      The tlv id that marks the beginning of a new tlv8 entry.

    Returns Record<number, Buffer>[]