Write a command-line tool tlv decode that reads a binary file in a custom Tag-Length-Value (TLV) format and…
Write a command-line tool tlv decode that reads a binary file in a custom Tag-Length-Value (TLV) format and…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (binary, big-endian): - The file consists of a sequence of records. - Each record: - 1 byte…
The task
**Input format (binary, big-endian):** - The file consists of a sequence of records. - Each record: - 1 byte: Tag (unsigned 8-bit integer) - Length: a variable-length unsigned integer using a varint encoding (see below) - Value: exactly Length bytes of payload
Part of ai-and/termgrade-environments.