HF RL Explorer

Write a command-line tool that decodes a binary file in a custom TLV+varint format and outputs the parsed…

Write a command-line tool that decodes a binary file in a custom TLV+varint format and outputs the parsed…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format specification (binary, little-endian unless stated otherwise): - The file begins with a 4-byte…

The task

Input format specification (binary, little-endian unless stated otherwise): - The file begins with a 4-byte magic number: 0x54 0x4C 0x56 0x01 (ASCII "TLV\x01") - Following the magic is a sequence of records. Each record has: - 1-byte record type (unsigned integer 1-255; type 0 marks end-of-stream, always present as…

Part of ai-and/termgrade-environments.