HF RL Explorer

Write a command-line tool tlv2json that reads a binary file containing a sequence of Tag-Length-Value…

Write a command-line tool tlv2json that reads a binary file containing a sequence of Tag-Length-Value…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (binary file): - The file consists of zero or more TLV records concatenated. - Each record: Tag (1…

The task

**Input format (binary file):** - The file consists of zero or more TLV records concatenated. - Each record: `Tag` (1 byte, unsigned integer 0-255) | `Length` (variable-length unsigned integer, see below) | `Value` (exactly `Length` bytes). - The variable-length integer encoding: - Each byte's lower 7 bits carry…

Part of ai-and/termgrade-environments.