addOrUpdate

inline fun <R : T> addOrUpdate(r: R): TlvStream<T>

Add a record to the tlv stream. Only one record of each type is allowed, so this replaced the previous record of the same type.