{"success":true,"data":{"ext":"pcs","name":"Pfaff Home Embroidery file","description":"The Pfaff Home Embroidery file (PCS) is a proprietary embroidery design format developed by Pfaff for use with its home embroidery machines and software. It stores stitch data, pattern layout, and related design information for creating decorative and machine-stitched motifs on compatible equipment. The format is generally considered safe, though support is limited to software and hardware that can read legacy Pfaff designs.","mime":[],"risk_level":"Safe","signatures":[{"hex":"32 03 10 00 00 00 00 00 00 00 80 00 00 00 FF 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"4D 54 68 64","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["pec","pes","dst","hus"],"usage":{"python":"def is_pcs(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PCS by magic bytes.\"\"\"\n    signature = bytes([0x32, 0x03, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0xFF, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(16) == signature","node":"function isPCS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x32, 0x03, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0xFF, 0x00]);\n  return buffer.subarray(0, 16).equals(signature);\n}","go":"func IsPCS(data []byte) bool {\n    signature := []byte{0x32, 0x03, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0xFF, 0x00}\n    if len(data) < 16 {\n        return false\n    }\n    return bytes.Equal(data[:16], signature)\n}"}}}