{"success":true,"data":{"ext":"dxr","name":"DXR","description":"DXR is a legacy Macromedia Director format, later associated with Adobe, used to store protected Director movies. It was primarily used for interactive multimedia content, animations, educational titles, and web or CD-ROM presentations built with Director-based authoring tools. As an obsolete format, DXR files are generally considered safe to open, though support is limited in modern software and they may require older Director-compatible applications.","mime":["application/x-director"],"risk_level":"Safe","signatures":[{"hex":"52 49 46 58","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"4D 56 39 33","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["dcr","dir","drx"],"usage":{"python":"def is_dxr(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DXR by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x49, 0x46, 0x58])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isDXR(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x49, 0x46, 0x58]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsDXR(data []byte) bool {\n    signature := []byte{0x52, 0x49, 0x46, 0x58}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}