Convert ArrayList of objects (Value, Key) values into TLV - Kotlin

237 Views Asked by At

I have a data class called Tags that contains a key and value (both Strings). I am required to generate a TLV with these Tag entries but none of the libraries I have used have worked.

Primarily:

An example of a Tag we have is:

Tags("df79", "353533")

Does anyone know how to create a TLV with string data in this format? Do I misunderstand how TLV works? All the libraries require Int or ByteArray properties.

0

There are 0 best solutions below