forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdecompress.lcdoc
More file actions
43 lines (25 loc) · 1.39 KB
/
Copy pathdecompress.lcdoc
File metadata and controls
43 lines (25 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Name: decompress
Type: function
Syntax: decompress(<gzippedString>)
Syntax: the decompress of <gzippedString>
Summary: <return|Returns> the plain text of a gzip-encoded <string>.
Introduced: 1.0
OS: mac,windows,linux,ios,android
Platforms: desktop,server,web,mobile
Example:
decompress(receivedString)
Example:
put decompress(it) into URL "file:data.txt"
Example:
go stack decompress(URL "binfile:newstuff.gz")
Parameters:
gzippedString (string):
data (string): A string of compressed binary data.
Returns: The <decompress> <function> <return|returns> a <string>.
Description:
Use the <decompress> <function(control_st)> to regain the original data that was <compress|compressed>.
The decompress <function(control_st)> is the <inverse> of the <compress> <function(control_st)>.
The uncompressed result is typically about half again the size of the compressed data, although different results may be obtained depending on the amount of data.
For technical information about the format used by the <compress> and <decompress> <function(glossary)|functions>, see RFC 1952 at http://www.ietf.org/rfc/rfc1952.txt. The <decompress> <function(control_st)> uses the zlib compression library.
References: string (keyword), inverse (keyword), base64Decode (function), compress (function), URLDecode (function), compress (glossary), return (glossary), function (glossary), function (control_st)
Tags: text processing