Goal: Write a command-line tool that reads a binary file of Type-Length-Value (TLV) records using unsigned…
Goal: Write a command-line tool that reads a binary file of Type-Length-Value (TLV) records using unsigned…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (binary file): - A sequence of TLV records back-to-back with no framing or header. - Each…
The task
**Input format (binary file):** - A sequence of TLV records back-to-back with no framing or header. - Each record: `tag` (unsigned LEB128 varint), `length` (unsigned LEB128 varint), then `length` raw bytes as the `value`. - End of file indicates end of records.
Part of ai-and/termgrade-environments.