Extracted from Pike v8.0 release 28 as of 2015-08-03.
   

Method Gz.inflate()->inflate()


Method inflate

string(8bit) inflate(string(8bit) 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(), Gz.decompress