易语言zlib deflate解压缩例子

易语言 2020-11-09 14:05:53

.循环判断首 ()
.如果真 (strm.avail_out = 0)
data = data + out
out = 取空白字节集 (AtLeast (strm.avail_in, 1024))
strm.avail_out = 取字节集长度 (out)
strm.next_out = 取变量数据地址 (out)
.如果真结束

resp = inflate (strm, #Z_NO_FLUSH)
.循环判断尾 (resp = #Z_OK)
inflateEnd (strm)
data = data + 取字节集左边 (out, 取字节集长度 (out) - strm.avail_out)