Compression Functions
This section contains the intrinsic functions that are used for compressing and decompressing strings and blobs.
.compress1()
Prototype
.compress1
(
)
<content>
Return types
.nul, .inf, string|blob
Description
Returns a string or blob compressed to the same type. In the case of a string, if all of the characters are single-byte characters, then the resulting compressed string will also be single-byte characters (this is of importance if the compressed string is being output since it can be output as 1 byte per character).
Parameters
content
Type name | Result for an expression of this type in this parameter |
---|---|
.nul
| The result will be .nul |
.inf
| The result will be .inf |
blob
| The result will be a blob compressed using the compress1 algorithm |
string
| The result will be a string compressed using the compress1 algorithm |
.decompress1()
Prototype
.decompress1
(
) <content>
Return types
.nul, .inf, string|blob
Description
Returns a string or blob decompressed from the same type.
Parameters
content
Type name | Result for an expression of this type in this parameter |
---|---|
.nul
| The result will be .nul |
.inf
| The result will be .inf |
blob
| The result will be the original blob that was compressed using the compress1 algorithm |
string
| The result will be the original string that was compressed using the compress1 algorithm |