Files in directory undroid/zstd0.2 from the latest check-in of branch trunk
- pkgIndex.tcl
- README.md
- zstd.tcl
zstd 0.2
Tcl interface to libzstd using Ffidl.
Usage
package require zstd
Report library version of libzstd:
zstd version
# returns major/minor/micro, e.g. 1.2.3
Compress a byte array:
set b [encoding convertto iso8859-1 "I am a byte array"]
# input must be a byte array
set c [zstd compress $b]
# or [zstd compress $b 3] to use compression level 3
Decompress a byte array:
# input must be a byte array
set r [zstd decompress $c]
# result is a byte array (the uncompressed bytes of the input)