@interface PTFlateEncode : PTFilter
FlateEncode filter can be used to compress any data stream using Flate (i.e. ZIP) compression method.
Constructor for Flate encoder.
- (instancetype)initWithInput_filter:(PTFilter *)input_filter compression_level:(int)compression_level buf_sz:(unsigned long)buf_sz;
init!(input_filter: PTFilter!, compression_level: Int32, buf_sz: UInt)
the input data stream
must be a number between 0 and 9: 1 gives best speed, 9 gives best compression, 0 gives no compression at all (the input data is simply copied a block at a time), -1 requests a default compromise between speed and compression (currently equivalent to level 6).
filter buffer size (in bytes).