chickadee » z3 » z3:encode-file

z3:encode-file FILENO #!key level filename comment ostype extraprocedure

Open a RFC1952 compressed "gzip" file (specified by the file-descriptor in FILENO) for encoded data. The keyword arguments have the following meaning:

level
Desired compression-level in the range 1 .. 9, or 0 for selecting the default compression level
filename
The name of the file to compress, will be included in the gzip-file header
comment
An arbitrary comment
ostype
Operating system indicator byte (defaults to -1)
extra
Extra data to be encoded in the header"

Returns a z3 file-handle.