HF RL Explorer

Write a command-line tool that reads a binary file containing a sequence of Tag-Length-Value (TLV) records…

Write a command-line tool that reads a binary file containing a sequence of Tag-Length-Value (TLV) records…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: - The file starts with a 2-byte big-endian record count N . - Then exactly N TLV records…

The task

**Input format:** - The file starts with a 2-byte big-endian record count `N`. - Then exactly `N` TLV records follow. - Each TLV record: - 1 byte: Tag (0x01–0xFF inclusive) - 2 bytes: Length `L` as big-endian unsigned 16-bit integer (0–65535) - `L` bytes: Value (raw bytes) - Multi-byte Value payloads are interpreted…

Part of ai-and/termgrade-environments.