升级:新增unicompress(统一压缩函数)和uniuncompress(统一解压函数)函数,使用方式如下:
function unicompress(type:string;data:string/binary[;compresslevel:Integer]):String;
type目前支持zstd,zlib,lz4三种类型,压缩级别在zstd和zlib模式下生效。
function uniuncompress(type:string;data:string/binary[;srclen:Integer]):String;
type目前支持zstd,zlib,lz4三种类型,srclen的设置是解压的大小,不设定会自动识别,设定后会比较大小是否相符,如果知道原大小,则应该设定该参数。
说明:支持对字符串或二进制类型数据的压缩与解压,具体说明可参考:FAQ:unicompress -----------------------------------------------------