Gzip (String function)

From m204wiki
Revision as of 21:02, 8 February 2012 by Dme (talk | contribs) (→‎Syntax terms)
Jump to navigation Jump to search

Compress a longstring with GZIP (String class)

[Introduced in Sirius Mods 7.4]


Syntax

%outString = string:Gzip[( [FixedCode= boolean], [LazyMatch= boolean], - [MaxChain= number], [Filename= string], - [LastModified= number])]

Syntax terms

%outStringThe result of the GZIP operation, compressing the method object string.
string The string to be compressed by the GZIP operation.
FixedCode Boolean value
LazyMatch Boolean value
MaxChain number
Filename string
LastModified The date/time stamp to be stored as a component of the output %outString, expressed as a number of the form . The default is the current date and time.

After Gzip stores a value into %string, the LastModified date/time stamp can be obtained with the GunzipDatetimeNS function.

Usage notes

  • The inverse of Gzip is Gunzip.

Examples

See also