Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Gz
Gz.inflate

Method Gz.inflate()->inflate()


Method inflate

string inflate(string data)

Description

This function performs gzip style decompression. It can inflate a whole file at once or in blocks.

Example

// whole file write(Gz.inflate()->inflate(stdin->read(0x7fffffff));

// streaming (blocks) function inflate=Gz.inflate()->inflate; while(string s=stdin->read(8192)) write(inflate(s));

See also

Gz.deflate->deflate()