Implement a binary record decoder that reads a custom binary format and outputs valid JSON to stdout.
Implement a binary record decoder that reads a custom binary format and outputs valid JSON to stdout.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): A stream of records encoded in a compact binary format: - Each record starts with a tag (1…
The task
**Input format (stdin):** A stream of records encoded in a compact binary format: - Each record starts with a **tag** (1 byte, unsigned, range 0–255). - The tag is followed by a **length** encoded as a variable-length unsigned integer (varint) using the Protobuf-style encoding: 7 bits per byte, MSB=1 means more bytes…
Part of ai-and/termgrade-environments.