{"success":true,"data":{"ext":"sz","name":"SZ","description":"SZ is a file format associated with the Snappy framing format, developed and maintained by Google as part of the Snappy compression ecosystem. It is used to store compressed data for fast transmission and retrieval in software systems, archives, and networked applications that rely on Snappy-compatible tools. The format is generally considered safe, with security concerns depending mainly on the trustworthiness of the source and the handling of decompressed content.","mime":["application/x-snappy-framed"],"risk_level":"Safe","signatures":[{"hex":"73 4E 61 50 70 59","offset":0,"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":[],"usage":{"python":"def is_sz(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SZ by magic bytes.\"\"\"\n    signature = bytes([0x73, 0x4E, 0x61, 0x50, 0x70, 0x59])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isSZ(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x73, 0x4E, 0x61, 0x50, 0x70, 0x59]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsSZ(data []byte) bool {\n    signature := []byte{0x73, 0x4E, 0x61, 0x50, 0x70, 0x59}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"}}}