{"success":true,"data":{"ext":"dsp","name":"Microsoft Developer Studio project file","description":"Microsoft Developer Studio project files are text-based configuration files created and maintained by Microsoft for the Visual Studio and earlier Developer Studio toolchains. They store project settings, source file lists, build options, and workspace information used to compile and manage software projects. As a legacy format, they are generally safe to inspect, though they may reference paths or tools that are no longer supported.","mime":["text/plain"],"risk_level":"Safe","signatures":[{"hex":"23 20 4D 69 63 72 6F 73 6F 66 74 20 44 65 76 65 6C 6F 70 65 72 20 53 74 75 64 69 6F","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["dsw","suo","vcw","ctl","pch"],"usage":{"python":"def is_dsp(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DSP by magic bytes.\"\"\"\n    signature = bytes([0x23, 0x20, 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x44, 0x65, 0x76, 0x65, 0x6C, 0x6F, 0x70, 0x65, 0x72, 0x20, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6F])\n    with open(file_path, \"rb\") as f:\n        return f.read(28) == signature","node":"function isDSP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x23, 0x20, 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x44, 0x65, 0x76, 0x65, 0x6C, 0x6F, 0x70, 0x65, 0x72, 0x20, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6F]);\n  return buffer.subarray(0, 28).equals(signature);\n}","go":"func IsDSP(data []byte) bool {\n    signature := []byte{0x23, 0x20, 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x44, 0x65, 0x76, 0x65, 0x6C, 0x6F, 0x70, 0x65, 0x72, 0x20, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6F}\n    if len(data) < 28 {\n        return false\n    }\n    return bytes.Equal(data[:28], signature)\n}"},"category":"Source Code"}}