public CopyStream(ICustomStreamReader reader, ICustomStreamWriter writer, IBufferPool bufferPool) { this.reader = reader; this.writer = writer; buffer = bufferPool.GetBuffer(); this.bufferPool = bufferPool; }
public CopyStream(ICustomStreamReader reader, ICustomStreamWriter writer, IBufferPool bufferPool, int bufferSize) { this.reader = reader; this.writer = writer; BufferSize = bufferSize; buffer = bufferPool.GetBuffer(bufferSize); }