Function decodeWithLists

  • Decode a buffer coding TLV8 encoded entries.

    This method decodes multiple entries split by a TLV delimiter properly into Buffer arrays. It properly reassembles tlv entries if they were split across multiple entries due to exceeding the max tlv entry size of 255 bytes.

    Parameters

    • buffer: Buffer

      The Buffer containing TLV8 encoded data.

    Returns Record<number, Buffer | Buffer[]>