Implement a command-line tool /app/bin/tlv2json that reads a binary file in a custom Type-Length-Value (TLV)…
Implement a command-line tool /app/bin/tlv2json that reads a binary file in a custom Type-Length-Value (TLV)…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (binary, big-endian): - The file consists of zero or more records concatenated with no…
The task
**Input format (binary, big-endian):** - The file consists of zero or more records concatenated with no separator. - Each record: `type` (1 byte), `length` (variable unsigned integer, see below), `value` (exactly `length` bytes). - The variable-length unsigned integer (varint) encoding: - The highest bit of each byte…
Part of ai-and/termgrade-environments.