Contents
cStringCompression class
Provides functions to compress or decompress string
All functions in this class are static, so they should be called in the dot convention:
local CompressedString = cStringCompression.CompressStringGZIP("DataToCompress")
Functions
Name | Parameters | Return value | Notes |
CompressStringGZIP |
string |
string |
Compress a string using GZIP |
CompressStringZLIB |
string, factor |
string |
Compresses a string using ZLIB. Factor 0 is no compression and factor 9 is maximum compression |
InflateString |
string |
string |
Uncompresses a string using Inflate |
UncompressStringGZIP |
string |
string |
Uncompress a string using GZIP |
UncompressStringZLIB |
string, uncompressed length |
string |
Uncompresses a string using ZLIB |
|