{"success":true,"data":{"ext":"vda","name":"VDA","description":"VDA is a legacy raster image format in the TARGA family, originally developed by Truevision and now supported by various graphics applications. It has been used for bitmap images, icons, textures, and other simple graphics in desktop publishing, imaging tools, and game development workflows. The format is generally safe, but as with other image files, malformed data can expose parser bugs; its use is now largely historical in modern software.","mime":["image/x-tga"],"risk_level":"Safe","signatures":[{"hex":"01 01 00 00","offset":1,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"00 02 00 00","offset":1,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"00 03 00 00","offset":1,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["icb","tga"],"usage":{"python":"def is_vda(file_path: str) -> bool:\n    \"\"\"Check if file is a valid VDA by magic bytes at offset 1.\"\"\"\n    signature = bytes([0x01, 0x01, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        f.seek(1)\n        return f.read(4) == signature","node":"function isVDA(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x01, 0x01, 0x00, 0x00]);\n  if (buffer.length < 5) return false;\n  return buffer.subarray(1, 5).equals(signature);\n}","go":"func IsVDA(data []byte) bool {\n    signature := []byte{0x01, 0x01, 0x00, 0x00}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[1:5], signature)\n}"},"category":"Images"}}