miniLZO压缩库使用注意事项
来源:互联网 发布:mac口红russian red 编辑:程序博客网 时间:2024/04/26 00:51
使用miniLZO压缩库的好处不多说了。下面是一个在实际使用中需注意的地方:
解压缩函数(下面任何一个):
/* decompression */LZO_EXTERN(int)lzo1x_decompress ( const lzo_bytep src, lzo_uint src_len, 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 src_len, 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_len;//!!!! 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); else { /* this should NEVER happen */ printf("internal error - decompression failed: %d\n", r); return 1; }
- miniLZO压缩库使用注意事项
- miniLZO无损压缩库评估
- 文件系统的无损压缩算法miniLZO
- miniLZO项目在winCE下的使用
- minilzo.108
- 启用memcached压缩注意事项
- jsoncpp库使用注意事项
- Eigen库使用注意事项
- LZO和MiniLZO编码介绍
- tomcat配置gzip压缩注意事项
- Zlib压缩类库使用
- LZMA压缩库使用记录
- MVC4捆绑压缩css和js注意事项
- 使用xerces库的一个注意事项
- Crypto++(CryptoPP)库初始化以及使用注意事项
- C++标准库---vector使用注意事项
- C++标准库---deque使用注意事项
- C++标准库---list使用注意事项
- 面试题之线程的缓存系统
- VC++ 不重启Windows直接更改IP地址
- Android反编译APK文件
- ios20-录制音频(播放,停止,开始录制)
- OutputDebugString, NKDbgPrintfW
- miniLZO压缩库使用注意事项
- 心境修炼之一
- 心境修炼之二
- 三层架构入门
- Hibernate
- Overview of the High Efficiency Video Coding(HEVC) Standard之二
- 冯大辉的这十五年:一个非典型程序员的回想和思考
- Python实例讲解——wxPython的基本控件实现
- 将一个字符串中的多个连在一起的空格变成单个空格 Java 正则表达式