Function decode

  • This method is the legacy way of decoding tlv data. It will not properly decode multiple list of the same id. Should the decoder encounter multiple instances of the same id, it will just concatenate the buffer data.


    • buffer: Buffer

      TLV8 data

      Note: Please use decodeWithLists which properly decodes list elements.

    Returns Record<number, Buffer>