Write a command-line tool tlv-decoder that reads a single binary file and outputs its decoded contents as…
Write a command-line tool tlv-decoder that reads a single binary file and outputs its decoded contents as…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: The binary file consists of a sequence of records. Each record is: - 1 byte: type tag (unsigned…
The task
**Input format:** The binary file consists of a sequence of records. Each record is: - 1 byte: type tag (unsigned 8-bit integer) - Variable-length integer: length of value in bytes (see encoding below) - `length` bytes: value
Part of ai-and/termgrade-environments.