Changeset 13069 in project
Legend:
- Unmodified
- Added
- Removed
-
wiki/lzma
r13064 r13069 3 3 == Introduction 4 4 5 The lzma egg provides a simple wrapper around the C library l iblzma, which in turn provides access to the excellent [[http://en.wikipedia.org/wiki/LZMA|Lempel-Ziv-Markov chain algorithm]].5 The lzma egg provides a simple wrapper around the C library lzmalib, which in turn provides access to the excellent [[http://en.wikipedia.org/wiki/LZMA|Lempel-Ziv-Markov chain algorithm]]. 6 6 7 7 Two functions are provided, which simply compress or decompress a buffer represented as a Chicken blob object. … … 11 11 <examples> 12 12 <example> 13 <init>(use lzma)</init> 13 14 <expr>(blob->string (lzma:decompress (lzma:compress (string->blob "Hello, World!"))))</expr> 14 15 <result>"Hello, World!"</result> 15 16 </example> 16 17 <example> 18 <init>(use lzma)</init> 17 19 <expr>(blob-size (lzma:compress (string->blob "Hello, World!")))</expr> 18 20 <result>32</result> 19 21 </example> 20 22 <example> 23 <init>(use lzma)</init> 21 24 <expr>(blob-size (lzma:compress (string->blob "Hello, World! Hello, World! Hello, World!")))</expr> 22 25 <result>36</result> … … 32 35 <procedure>(lzma:decompress BLOB) => BLOB</procedure> 33 36 34 Given a blob returned by lzma:compress, returns the original blob.37 Given a blob returned by {{lzma:compress}}, returns the original blob. 35 38 36 39 == Authors … … 50 53 == Requirements 51 54 52 You'll need l iblzmainstalled. Source of this can be had from [[http://tokyocabinet.sourceforge.net/misc/lzmalib-0.0.1.tar.gz]].55 You'll need lzmalib installed. Source of this can be had from [[http://tokyocabinet.sourceforge.net/misc/lzmalib-0.0.1.tar.gz]]. 53 56 54 57 == Version History
Note: See TracChangeset
for help on using the changeset viewer.