Compress a string
Compresses string s and returns the compressed form. Note that it may contain nulls (bytes with a zero value).
0 = no compression
1 = best speed
9 = best compression
The default, if omitted, is 6.
For short strings the compressed data may be longer than the uncompressed data because of a 12-byte "compression information" header that is prepended to the compressed data. For longer text (such as the section above about the Lua sandbox), the compression ratio is about 50%.
See Also ...
utils.activatenotepad - Actvitates the specified notepad window
Lua base functions
(Help topic: lua=utils.compress)
Enter a search string to find matching documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.
Gammon Software support
Forum RSS feed ( https://gammon.com.au/rss/forum.xml )