TlvStreamSerializer

fun <T : Tlv> TlvStreamSerializer(lengthPrefixed: Boolean, readers: Map<Long, TlvValueReader<T>>)

Parameters

lengthPrefixed

if true, the first bytes contain the total length of the serialized stream.

readers

custom readers that will be used to read tlv values.