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-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input format: Each record has three fields: 1. Type (1 byte)…
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…