Write a command-line tool that decodes a binary file containing a sequence of Tag-Length-Value (TLV) records…
Write a command-line tool that decodes a binary file containing a sequence of Tag-Length-Value (TLV) records…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Header: - 4 bytes: magic number 0x54 0x4C 0x56 0x01 (ASCII "TLV" + version byte 1) - 2 bytes: total record…
The task
**Header:** - 4 bytes: magic number `0x54 0x4C 0x56 0x01` (ASCII "TLV" + version byte 1) - 2 bytes: total record count as big-endian unsigned 16-bit integer
Part of ai-and/termgrade-environments.