Other Alias
tlv_encodeLIBRARY
Mifare card manipulation library (libfreefare, -lfreefare)SYNOPSIS
In freefare.h Ft uint8_t * Fn tlv_encode const uint8_t type const uint8_t *istream uint16_t isize size_t *osize Ft uint8_t * Fn tlv_decode const uint8_t *istream uint8_t *type uint16_t *sizeDESCRIPTION
The Fn tlv_encode and Fn tlv_decode functions are helpers to manipulate TLV (Text-Length-Value) data.The Fn tlv_encode function converts the isize bytes long istream message into a TLV stream of type type and set the value of osize to the length of the returned stream.
The Fn tlv_decode function converts the istream TLV stream and set the type argument according to the type of the stream, and set the size argument to the length of the returned stream.