{"success":true,"data":{"ext":"d64","name":"D64","description":"D64 is a disk image format for Commodore 64 floppy disks, originally created for Commodore systems and now preserved by the retrocomputing community. It is used to archive disk contents, distribute software and games, and load data in emulators or on compatible hardware. As a legacy format, it is generally safe to inspect, though files from untrusted sources may contain corrupted or intentionally modified disk images.","mime":[],"risk_level":"Safe","signatures":[{"hex":"A0 32 41 A0 A0 A0","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_d64(file_path: str) -> bool:\n    \"\"\"Check if file is a valid D64 by magic bytes.\"\"\"\n    signature = bytes([0xA0, 0x32, 0x41, 0xA0, 0xA0, 0xA0])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isD64(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xA0, 0x32, 0x41, 0xA0, 0xA0, 0xA0]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsD64(data []byte) bool {\n    signature := []byte{0xA0, 0x32, 0x41, 0xA0, 0xA0, 0xA0}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"}}}