PTFlateEncode
@interface PTFlateEncode : PTFilter
FlateEncode filter can be used to compress any data stream using Flate (i.e. ZIP) compression method.
-
Constructor for Flate encoder.
Declaration
Objective-C
- (instancetype)initWithInput_filter:(PTFilter *)input_filter compression_level:(int)compression_level buf_sz:(unsigned long)buf_sz;
Swift
init!(input_filter: PTFilter!, compression_level: Int32, buf_sz: UInt)
Parameters
input_filter
the input data stream
compression_level
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).
buf_sz
filter buffer size (in bytes).