{"success":true,"data":{"ext":"ac10","name":"Dwg","description":"Dwg is a proprietary image and drawing file format associated with Autodesk and its AutoCAD ecosystem, used to store two-dimensional and three-dimensional design data. It is used in computer-aided design workflows for architectural plans, engineering schematics, construction documentation, and technical illustrations, and is commonly opened by CAD applications and viewers. The format is generally safe to inspect, though files from untrusted sources can contain malformed data or embedded objects that may affect unsupported software.","mime":["image/vnd.dwg"],"risk_level":"Safe","signatures":[{"hex":"41 43 31 30","offset":0,"sources":[{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/Dwg.cs"}]}],"related":["dwg"],"usage":{"python":"def is_ac10(file_path: str) -> bool:\n    \"\"\"Check if file is a valid AC10 by magic bytes.\"\"\"\n    signature = bytes([0x41, 0x43, 0x31, 0x30])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isAC10(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x41, 0x43, 0x31, 0x30]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsAC10(data []byte) bool {\n    signature := []byte{0x41, 0x43, 0x31, 0x30}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}