{"success":true,"data":{"ext":"ani","name":"Windows animated cursor","description":"Windows Animated Cursor (ANI) is a cursor animation file format developed by Microsoft for the Windows operating system. It is used to store animated mouse pointers and is supported by Windows, many desktop applications, and some graphics tools that handle cursor customization. The format is generally safe, though like other legacy Windows shell assets it should be opened from trusted sources because malformed files can affect cursor handling in older software.","mime":[],"risk_level":"Safe","signatures":[{"hex":"52 49 46 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"41 43 4F 4E","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["cda","cdr","cmx","ds4","mmm","qcp"],"usage":{"python":"def is_ani(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ANI by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x49, 0x46, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isANI(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x49, 0x46, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsANI(data []byte) bool {\n    signature := []byte{0x52, 0x49, 0x46, 0x46}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}