Implement a command-line tool that reads a binary file containing a sequence of Tag-Length-Value (TLV)…
Implement a command-line tool that reads a binary file containing a sequence of Tag-Length-Value (TLV)…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The binary format: - Each record: 1-byte Tag (unsigned 8-bit integer), followed by a Length encoded as a…
The task
The binary format: - Each record: 1-byte Tag (unsigned 8-bit integer), followed by a Length encoded as a variable-length unsigned integer (varint), followed by Value bytes of exactly that decoded length. - Varint encoding: unsigned little-endian base-128 varint (same as Protocol Buffers). Each byte's MSB is the…
Part of ai-and/termgrade-environments.