(doc-group compress «Compression.») (defdoc (lz-pack data (level 0)) «Return data compressed using Lempel-Ziv. The data must be an array, returned value will have the same type. The optional `level` is between `0` and `10`. With `level` set to `0` a simple LZSS using hashing will be performed. Levels between `1` and `9` offer a trade-off between time/space and ratio. Level `10` is optimal but very slow.» :doc-group compress) (defdoc (lz-unpack data :to destination)) (defdoc (lz-unpack data :size decompressed-bytes) «Return decompressed data previously compressed using Lempel-Ziv. Either destination for the decompressed data or the expected size of the decompressed data must be specified. In the latter case a new array is allocated.» :doc-group compress)