{"success":true,"data":{"ext":"snd","name":"SND","description":"SND is a legacy audio file format originally associated with Sun Microsystems and NeXT, and it is now supported by many audio tools and operating systems. It was used for storing simple digital audio, including voice recordings, sound effects, and early multimedia content, and is commonly encountered in older Unix-based systems. The format is generally safe, but because it is obsolete, some modern applications may have limited support or require conversion.","mime":["audio/basic"],"risk_level":"Safe","signatures":[{"hex":"2E 73 6E 64","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"},{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"2E 73 6E 64 00 00 00","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"}]},{"hex":"46 4F 52 4D","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"38 53 56 58","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"41 49 46 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["au","aac","ac3","aif","aifc","aiff"],"usage":{"python":"def is_snd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SND by magic bytes.\"\"\"\n    signature = bytes([0x2E, 0x73, 0x6E, 0x64])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isSND(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x2E, 0x73, 0x6E, 0x64]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsSND(data []byte) bool {\n    signature := []byte{0x2E, 0x73, 0x6E, 0x64}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Audio"}}