Gzip (String function): Difference between revisions
Jump to navigation
Jump to search
m (→Syntax terms) |
mNo edit summary |
||
Line 5: | Line 5: | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>% | <tr><th>%outString</th><td>The result of the GZIP operation, compressing the method object <var class="term">string</var>.</td></tr> | ||
<tr><th> | <tr><th>string</th> | ||
<td> | <td>The string to be compressed by the GZIP operation.</td></tr> | ||
<tr><th><var>FixedCode</var></th> | <tr><th><var>FixedCode</var></th> | ||
<td><var>Boolean</var> value</td></tr> | <td><var>Boolean</var> value</td></tr> | ||
Line 17: | Line 17: | ||
<td>string</td></tr> | <td>string</td></tr> | ||
<tr><th><var>LastModified</var></th> | <tr><th><var>LastModified</var></th> | ||
<td> | <td>The date to be stored as a component of the output <var class="term">%outString</var>, expressed as a number of the form . The default is the current date and time. | ||
After <var>Gzip</var> stores a value into <var class="term">%string</var>, the <var>LastModified</var> date/time stamp can be obtained with the <var>[[GunzipDatetimeNS (String function)|GunzipDatetimeNS]]</var> function. | After <var>Gzip</var> stores a value into <var class="term">%string</var>, the <var>LastModified</var> date/time stamp can be obtained with the <var>[[GunzipDatetimeNS (String function)|GunzipDatetimeNS]]</var> function. |
Revision as of 21:02, 8 February 2012
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
%outString | The 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 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.