read

fun read(input: Input): TlvStream<T>

Return

a tlv stream. For each tlv read from the stream:

  • if there is a reader for the tlv tag, we use it to decode the tlv value and add it to the stream's record

  • otherwise we add the raw tlv to the stream's unknown tlvs as a GenericTlv

Parameters

input

input stream

fun read(bytes: ByteArray): TlvStream<T>