Exemplo n.º 1
0
 public CopyStream(ICustomStreamReader reader, ICustomStreamWriter writer, IBufferPool bufferPool)
 {
     this.reader     = reader;
     this.writer     = writer;
     buffer          = bufferPool.GetBuffer();
     this.bufferPool = bufferPool;
 }
Exemplo n.º 2
0
 public CopyStream(ICustomStreamReader reader, ICustomStreamWriter writer, IBufferPool bufferPool, int bufferSize)
 {
     this.reader = reader;
     this.writer = writer;
     BufferSize  = bufferSize;
     buffer      = bufferPool.GetBuffer(bufferSize);
 }