cl-bzip2 介绍
cl-bzip2 是 Common Lisp 实现 bzip2 压缩和解压缩的开发包。
压缩示例代码:
;;; 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
cl-bzip2 官网
http://common-lisp.net/project/cl-bzip2/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。