Extracted from Pike v7.3 release 14 at 2002-02-15.
pike.roxen.com
[Top]
Gz
Gz.inflate

Method Gz.inflate()->inflate()


Method inflate

string Gz.inflate()->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