玩仙剑奇侠传6剧情动画4一过剧情动画就出来minilzo decompression failed:-8是

玩仙剑奇侠传4一过剧情动画就出来minilzo decompression failed:-8是_百度知道2540人阅读
&使用miniLZO压缩库的好处不多说了。下面是一个在实际使用中需注意的地方:
解压缩函数(下面任何一个):
/* decompression */
LZO_EXTERN(int)
lzo1x_decompress
( const lzo_bytep src, lzo_uint
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem /* NOT USED */ );
/* safe decompression with overrun testing */
LZO_EXTERN(int)
lzo1x_decompress_safe
( const lzo_bytep src, lzo_uint
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem /* NOT USED */ );
中的第四个参数,即“解压缩后的”长度,虽然是一个指针型(要返回的内容),但却是需要输入“压缩前的长度值“,这一点一定注意!
实际上,在miniLZO压缩库给的testmini.c中已经看出来:
&* Step 4: decompress again, now going from 'out' to 'in'
& & new_len = in_//!!!!
& & r = lzo1x_decompress(out,out_len,in,&new_len,NULL);
& & if (r == LZO_E_OK && new_len == in_len)
& & & & printf(&decompressed %lu bytes back into %lu bytes\n&,
& & & & & & (unsigned long) out_len, (unsigned long) in_len);
& & & & /* this should NEVER happen */
& & & & printf(&internal error - decompression failed: %d\n&, r);
& & & & return 1;
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:637032次
积分:8662
积分:8662
排名:第1559名
原创:266篇
转载:34篇
评论:90条
(2)(1)(5)(1)(8)(21)(2)(2)(4)(1)(1)(2)(6)(1)(6)(7)(1)(6)(2)(9)(2)(4)(1)(3)(4)(1)(2)(11)(8)(5)(18)(2)(1)(7)(1)(3)(9)(11)(8)(13)(5)(1)(8)(2)(5)(17)(4)(6)(1)(1)(5)(6)(2)(3)(1)(8)(5)(5)(2)(3)(12)(4)(1)启动仙剑4 弹出 Minilzo decompression failed: -8_百度知道dota2 6.84什么英雄凶_百度知道仙剑4 弹出 Minilzo decompression failed: -8_百度知道

参考资料

 

随机推荐