{"success":true,"data":{"ext":"oar","name":"OAR","description":"OAR (OpenSimulator Archive) is a file format developed and maintained by the OpenSimulator project for packaging virtual world region data. It is used to export, import, and back up regions in OpenSimulator-based environments, including terrain, objects, scripts, and settings. The format is generally safe to handle, though, as with any archive, its contents should typically be obtained from trusted sources.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4F 41 52","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_oar(file_path: str) -> bool:\n    \"\"\"Check if file is a valid OAR by magic bytes.\"\"\"\n    signature = bytes([0x4F, 0x41, 0x52])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isOAR(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4F, 0x41, 0x52]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsOAR(data []byte) bool {\n    signature := []byte{0x4F, 0x41, 0x52}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"}}}