eve.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:PyLetMeCreate 作者: CreatorDev 项目源码 文件源码
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")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号