| FILTER-DEFLATE(2) | System Calls Manual | FILTER-DEFLATE(2) |
deflate, inflate - data compression filters
include "filter.m"; deflate := load Filter Filter->DEFLATEPATH; inflate := load Filter Filter->INFLATEPATH; init: fn(); start: fn(param: string): chan of ref Rq;
These implementation modules conform to the Filter module interface for data-processing filters. For details of the interface, see filter (2).
Deflate implements gzip-compatible stream compression. The param string argument to start can contain one or more of the following option characters:
Inflate performs the inverse operation to deflate. If the param argument to start begins with the character `h' then the input to the filter is assumed to be in the standard gzip file format; if it starts with the character `z' it is assumed to be in zlib format; the output will be checked for integrity in both cases. While processing a gzip stream, the Rq.Info message is used to transmit some information; the type of information is determined by the first word of msg, as follows:
/appl/lib/deflate.b
/appl/lib/inflate.b
gzip (1), filter (2)
Internet RFCs RFC1950, RFC1951, and RFC1952.