Create a CLI tool that decodes a binary file containing multiple records and outputs valid JSON to stdout.
Create a CLI tool that decodes a binary file containing multiple records and outputs valid JSON to stdout.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (binary file, supplied as the only argument): The file consists of a sequence of records. Each…
The task
**Input format (binary file, supplied as the only argument):** The file consists of a sequence of records. Each record uses a custom Type-Length-Value encoding with variable-length integers: - **Type (1 byte):** unsigned 8-bit integer (0–255). - **Length:** a variable-length unsigned integer encoded as a "varint"…
Part of ai-and/termgrade-environments.