public DeflaterOutputStream(Stream baseOutputStream, Deflater deflater, int bufferSize) { this.isStreamOwner_ = true; if (baseOutputStream == null) { throw new ArgumentNullException("baseOutputStream"); } if (!baseOutputStream.CanWrite) { throw new ArgumentException("Must support writing", "baseOutputStream"); } if (deflater == null) { throw new ArgumentNullException("deflater"); } if (bufferSize < 0x200) { throw new ArgumentOutOfRangeException("bufferSize"); } this.baseOutputStream_ = baseOutputStream; this.buffer_ = new byte[bufferSize]; this.deflater_ = deflater; }
public DeflaterOutputStream(Stream baseOutputStream, Deflater deflater) : this(baseOutputStream, deflater, 0x200) { }