Files in undroid/lzma0.1/ of tip
Not logged in

Files in directory undroid/lzma0.1 from the latest check-in

  • lzma.tcl
  • pkgIndex.tcl
  • README.md

lzma 0.1

Tcl interface to liblzma using Ffidl.

Usage

package require lzma

Report library version of liblzma:

lzma version
# returns library version string

Compress a byte array:

set b [encoding convertto iso8859-1 "I am a byte array"]
# input must be a byte array
set c [lzma compress $b]
# or [lzma compress $b 3] to use compression level 3

Decompress a byte array:

# input must be a byte array
set r [lzma decompress $c]
# or for better performance, if uncompressed length is known
set r [lzma decompress $c 17]
# result is a byte array (the uncompressed bytes of the input)