HF RL Explorer

Create a command-line tool /app/decode tlv that reads a binary TLV (Type-Length-Value) file and outputs JSON…

Create a command-line tool /app/decode tlv that reads a binary TLV (Type-Length-Value) file and outputs JSON…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - The file consists of a sequence of records. - Each record: type (1 byte unsigned…

The task

**Input file format:** - The file consists of a sequence of records. - Each record: `type` (1 byte unsigned integer) + `length` (base-128 varint, unsigned LEB128) + `value` (exactly `length` bytes). - The varint uses the high bit as continuation flag (1 = more bytes, 0 = last byte), low 7 bits are data,…

Part of ai-and/termgrade-environments.