{"success":true,"data":{"ext":"qoi","name":"QOI","description":"Quite OK Image (QOI) is a lossless raster image format created by Dominic Szablewski and maintained through an open, community-accessible specification. It is used for storing and exchanging images in software that benefits from simple decoding and compact implementation, especially in development tools and libraries. The format is relatively recent and generally safe, though, as with any image file, corrupted or malformed files can still trigger parser bugs in poorly implemented decoders.","mime":[],"risk_level":"Safe","signatures":[{"hex":"71 6F 69 66","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_qoi(file_path: str) -> bool:\n    \"\"\"Check if file is a valid QOI by magic bytes.\"\"\"\n    signature = bytes([0x71, 0x6F, 0x69, 0x66])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isQOI(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x71, 0x6F, 0x69, 0x66]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsQOI(data []byte) bool {\n    signature := []byte{0x71, 0x6F, 0x69, 0x66}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}