{"success":true,"data":{"ext":"qcp","name":"Resource Interchange File Format -- QualcommPureVoice","description":"Resource Interchange File Format (RIFF) Qualcomm PureVoice is an audio container format developed by Qualcomm for storing compressed voice recordings. It is used primarily for voice memos, dictation, and mobile audio playback in applications and devices that support Qualcomm PureVoice decoding. The format is largely historical and is now uncommon, but it is generally considered safe to open in compatible media software.","mime":[],"risk_level":"Safe","signatures":[{"hex":"52 49 46 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"51 4C 43 4D","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"52 49 46 46 51 4C 43 4D 66 6D 74 20","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["cda","wav","ani","cdr","cmx","ds4"],"usage":{"python":"def is_qcp(file_path: str) -> bool:\n    \"\"\"Check if file is a valid QCP by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x49, 0x46, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isQCP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x49, 0x46, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsQCP(data []byte) bool {\n    signature := []byte{0x52, 0x49, 0x46, 0x46}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}