gunzip()
Extracts the content of source. The result is saved in the parameter target. CtrlZlib is a shared library with functions for data compression. It is based on libz (gzip, gunzip).
Synopsis
bool gunzip(blob source, blob | string &target);
Parameters
Parameter | Description |
---|---|
source | The content to be extracted. |
target | The extracted content. |
Return value
TRUE = successful
FALSE = failure
Error
FALSE
Description
Extracts the content of source. The result is saved in the parameter target.
Example
#uses "CtrlZlib"
main()
{
string inh = "Hello this is a test";
blob tr;
gzip(inh, tr);
DebugN("Compressed content", tr);
bool retV;
string t;
retV = gunzip(tr, t);
DebugN("Extracted content", t);
}
Assignment
File function
Availability
CTRL