def inflate(ptr, data):
"""Decompress some data in FT800 memory.
The data must have been compressed using the DEFLATE algorithm.
ptr: Starting address to decompress data
data: A list of bytes.
Note: An exception is thrown if it fails to decompress data.
"""
length = len(data)
_data = (ctypes.c_uint8 * length)(*data)
ret = _LIB.eve_click_inflate(ptr, _data, length)
if ret < 0:
raise Exception("eve click inflate failed")
评论列表
文章目录