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]; }
public ZOutputStream(Stream output, ZStream z) : this() { if (z == null) { z = new ZStream(); z.inflateInit(); } this.output = output; this.z = z; compress = false; }
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; }
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) { 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; }
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; }
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; }
private static ZStream GetDefaultZStream(bool nowrap) { ZStream z = new ZStream(); z.inflateInit(nowrap); return z; }