HF RL Explorer

Create a command-line tool /app/decode that reads a binary file of concatenated TLV (Type-Length-Value)…

Create a command-line tool /app/decode that reads a binary file of concatenated TLV (Type-Length-Value)…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: Each record has three fields: 1. Type (1 byte): unsigned 8-bit integer 2. Length (variable-length…

The task

**Input format:** Each record has three fields: 1. **Type** (1 byte): unsigned 8-bit integer 2. **Length** (variable-length unsigned integer, "varint" encoding): each byte uses 7 bits for data, MSB=1 means more bytes follow, MSB=0 means last byte. Little-endian bit order within each byte (least significant 7 bits are…

Part of ai-and/termgrade-environments.