{"success":true,"data":{"ext":"lzfse","name":"LZFSE","description":"LZFSE is a lossless data compression format and algorithm developed by Apple and maintained as part of its open-source software efforts. It is used to reduce the size of files and data streams in applications, storage systems, and software distribution workflows where efficient compression and fast decompression are required. The format is not considered obsolete; as with any compressed data, files should be handled carefully because malformed archives can cause errors in decompression tools.","mime":[],"risk_level":"Safe","signatures":[{"hex":"62 76 78 32","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_lzfse(file_path: str) -> bool:\n    \"\"\"Check if file is a valid LZFSE by magic bytes.\"\"\"\n    signature = bytes([0x62, 0x76, 0x78, 0x32])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isLZFSE(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x62, 0x76, 0x78, 0x32]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsLZFSE(data []byte) bool {\n    signature := []byte{0x62, 0x76, 0x78, 0x32}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}