Common Lisp 实现 bzip2 压缩和解压缩的开发包 - cl-bzip2
<p>cl-bzip2 是 Common Lisp 实现 bzip2 压缩和解压缩的开发包。</p> <p>压缩示例代码:</p> <pre class="brush:java; toolbar: true; auto-links: false;">;;; Compression usage ;;; No values are returned if execution was successful ;;; Using pathnames CL-USER> (bzip2:compress #p"test.txt" #p"test.txt.bz2") ; No value ;;; Using binary streams CL-USER> (with-open-file (in "test.txt" :direction :input :element-type '(unsigned-byte 8)) (with-open-file (out "test.txt.bz2" :direction :output :element-type '(unsigned-byte 8)) (bzip2:compress in out))) ; No value ;;; Mixing stream and pathname CL-USER> (with-open-file (in "test.txt" :direction :input :element-type '(unsigned-byte 8)) (bzip2:compress in #p"test.txt.bz2")) ; No value</pre> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1328152602437" target="_blank">http://www.open-open.com/lib/view/home/1328152602437</a></p> <p></p>
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!