{"success":true,"data":{"ext":"cso","name":"Compressed ISO","description":"The Compressed ISO (CSO) format is a compressed disc image format originally created by the PlayStation Portable homebrew community and maintained through community tools. It is used to store optical disc images in a smaller size for distribution, archival, and loading in emulators or compatible handheld firmware. CSO is a legacy format in many workflows, and as with other disk images, files from untrusted sources should be treated with normal caution.","mime":[],"risk_level":"Safe","signatures":[{"hex":"43 49 53 4F","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_cso(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CSO by magic bytes.\"\"\"\n    signature = bytes([0x43, 0x49, 0x53, 0x4F])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isCSO(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x43, 0x49, 0x53, 0x4F]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsCSO(data []byte) bool {\n    signature := []byte{0x43, 0x49, 0x53, 0x4F}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}