deflateInit() public method

public deflateInit ( int level ) : int
level int
return int
Example #1
0
 public ZOutputStream(Stream output, int level, bool nowrap)
     : this()
 {
     this.output = output;
     z           = new ZStream();
     z.deflateInit(level, nowrap);
     compress = true;
 }
Example #2
0
 public ZInputStream(Stream input, int level)
     : this()
 {
     this.input = input;
     z.deflateInit(level);
     compress        = true;
     z.next_in       = buf;
     z.next_in_index = 0;
     z.avail_in      = 0;
 }
Example #3
0
		public CompressedStream (Stream baseStream)
		{
			BaseStream = baseStream;

			zOut = new ZStream ();
			zOut.deflateInit (5, true);
			zOut.next_out = new byte[4096];

			zIn = new ZStream ();
			zIn.inflateInit (true);
			zIn.next_in = new byte[4096];
		}
Example #4
0
 public ZDeflaterOutputStream(Stream outp, int level, bool nowrap)
 {
     this.outp = outp;
     z.deflateInit(level, nowrap);
 }