{"success":true,"data":{"ext":"nii","name":"NII","description":"The NII format is the single-file NIfTI variant of the Neuroimaging Informatics Technology Initiative specification, developed by the NIfTI working group and maintained by the neuroimaging community. It is used to store magnetic resonance, computed tomography, and other volumetric medical imaging data for analysis, visualization, and research. The format is generally safe, and its long-standing use in neuroscience and radiology has made it a common exchange format across imaging tools.","mime":[],"risk_level":"Safe","signatures":[{"hex":"6E 2B 31 00","offset":344,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_nii(file_path: str) -> bool:\n    \"\"\"Check if file is a valid NII by magic bytes at offset 344.\"\"\"\n    signature = bytes([0x6E, 0x2B, 0x31, 0x00])\n    with open(file_path, \"rb\") as f:\n        f.seek(344)\n        return f.read(4) == signature","node":"function isNII(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x6E, 0x2B, 0x31, 0x00]);\n  if (buffer.length < 348) return false;\n  return buffer.subarray(344, 348).equals(signature);\n}","go":"func IsNII(data []byte) bool {\n    signature := []byte{0x6E, 0x2B, 0x31, 0x00}\n    if len(data) < 348 {\n        return false\n    }\n    return bytes.Equal(data[344:348], signature)\n}"}}}