inflateInit() public method

public inflateInit ( ) : int
return int
Ejemplo n.º 1
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];
		}
Ejemplo n.º 2
0
 public ZOutputStream(Stream output, ZStream z)
     : this()
 {
     if (z == null)
     {
         z = new ZStream();
         z.inflateInit();
     }
     this.output = output;
     this.z      = z;
     compress    = false;
 }
Ejemplo n.º 3
0
 public ZOutputStream(Stream output, ZStream z)
 {
     this.buf  = new byte[512];
     this.buf1 = new byte[1];
     base..ctor();
     if (z == null)
     {
         z = new ZStream();
         z.inflateInit();
     }
     this.output   = output;
     this.z        = z;
     this.compress = false;
 }
Ejemplo n.º 4
0
        public ZOutputStream(Stream output, ZStream z)
            : base()
        {
            Debug.Assert(output.CanWrite);

            if (z == null)
            {
                z = new ZStream();
                z.inflateInit();
            }

            this.output   = output;
            this.z        = z;
            this.compress = false;
        }
        public ZOutputStream(Stream output, ZStream z)
			: base()
		{
			Debug.Assert(output.CanWrite);

            if (z == null)
            {
                z = new ZStream();
                z.inflateInit();
            }

            this.output = output;
            this.z = z;
			this.compress = false;
		}
Ejemplo n.º 6
0
 public ZOutputStream(Stream output, ZStream z)
 {
     this.buf  = new byte[0x200];
     this.buf1 = new byte[1];
     if (z == null)
     {
         z = new ZStream();
     }
     if ((z.istate == null) && (z.dstate == null))
     {
         z.inflateInit();
     }
     this.output   = output;
     this.compress = z.istate == null;
     this.z        = z;
 }
Ejemplo n.º 7
0
        public ZOutputStream(Stream output, ZStream z)
            : base()
        {
            Debug.Assert(output.CanWrite);

            if (z == null)
            {
                z = new ZStream();
            }

            if (z.istate == null && z.dstate == null)
            {
                z.inflateInit();
            }

            this.output   = output;
            this.compress = (z.istate == null);
            this.z        = z;
        }
Ejemplo n.º 8
0
        public ZInputStream(Stream input, ZStream z)
            : base()
        {
            Debug.Assert(input.CanRead);

            if (z == null)
            {
                z = new ZStream();
            }

            if (z.istate == null && z.dstate == null)
            {
                z.inflateInit();
            }

            this.input           = input;
            this.compress        = (z.istate == null);
            this.z               = z;
            this.z.next_in       = buf;
            this.z.next_in_index = 0;
            this.z.avail_in      = 0;
        }
Ejemplo n.º 9
0
 private static ZStream GetDefaultZStream(bool nowrap)
 {
     ZStream z = new ZStream();
     z.inflateInit(nowrap);
     return z;
 }