{"success":true,"data":{"ext":"d81","name":"D81","description":"D81 is a disk image format for the Commodore 1581 floppy drive, introduced by Commodore International and preserved by the retrocomputing community. It is used to archive, transfer, and emulate 3.5-inch Commodore disk contents in emulators and preservation tools. As a legacy format, it is generally safe to open, though files from untrusted sources may be malformed or intentionally crafted for emulators.","mime":[],"risk_level":"Safe","signatures":[{"hex":"A0 33 44 A0 A0","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_d81(file_path: str) -> bool:\n    \"\"\"Check if file is a valid D81 by magic bytes.\"\"\"\n    signature = bytes([0xA0, 0x33, 0x44, 0xA0, 0xA0])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isD81(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xA0, 0x33, 0x44, 0xA0, 0xA0]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsD81(data []byte) bool {\n    signature := []byte{0xA0, 0x33, 0x44, 0xA0, 0xA0}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"}}}