Create a command-line tool at /app/bin/tlv2json that reads a custom binary TLV (Type-Length-Value) file from…
Create a command-line tool at /app/bin/tlv2json that reads a custom binary TLV (Type-Length-Value) file from…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: - File starts with a 4-byte big-endian magic number 0x544C5621 ("TLV!"). - Followed by a…
The task
**Input format:** - File starts with a 4-byte big-endian magic number `0x544C5621` ("TLV!"). - Followed by a 4-byte big-endian record count (uint32). - Then exactly that many records follow. - Each record: - Type: uint16 big-endian (1–65535, 0 is reserved/invalid) - Length: variable-length unsigned integer (LEB128…
Part of ai-and/termgrade-environments.