HF RL Explorer

Implement a command-line tool decode records that reads a binary file of tagged records and outputs the…

Implement a command-line tool decode records that reads a binary file of tagged records and outputs the…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The binary format consists of a sequence of records. Each record has this structure: - 1 byte: tag (unsigned…

The task

The binary format consists of a sequence of records. Each record has this structure: - 1 byte: tag (unsigned 8-bit integer) - 2 bytes: length (unsigned 16-bit big-endian integer) - N bytes: value (exactly length bytes)

Part of ai-and/termgrade-environments.