public InflaterInputStream(Stream baseInputStream, Inflater inflater, int bufferSize) { this.isStreamOwner = true; if (baseInputStream == null) { throw new ArgumentNullException("baseInputStream"); } if (inflater == null) { throw new ArgumentNullException("inflater"); } if (bufferSize <= 0) { throw new ArgumentOutOfRangeException("bufferSize"); } this.baseInputStream = baseInputStream; this.inf = inflater; this.inputBuffer = new InflaterInputBuffer(baseInputStream, bufferSize); }
public void SetInflaterInput(Inflater inflater) { if (this.available > 0) { inflater.SetInput(this.clearText, this.clearTextLength - this.available, this.available); this.available = 0; } }
public InflaterInputStream(Stream baseInputStream, Inflater inf) : this(baseInputStream, inf, 0x1000) { }