Goal: Read a binary file /data/records.bin that contains a sequence of records in a custom TLV…
Goal: Read a binary file /data/records.bin that contains a sequence of records in a custom TLV…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format ( /data/records.bin ): - The file starts with a 2-byte big-endian record count (uint16). - Following the…
The task
**Input format** (`/data/records.bin`): - The file starts with a 2-byte big-endian record count (uint16). - Following the count, there are exactly that many records. - Each record: - 1 byte: `type` (uint8). Valid types are `0x01` (string), `0x02` (integer), `0x03` (float), `0x04` (boolean), `0x05` (null). - 1 byte:…
Part of ai-and/termgrade-environments.