internal Pipeline(StreamHandle streamHandle, PooledByteBufferAllocator allocator) { Debug.Assert(streamHandle is object); Debug.Assert(allocator is object); _streamHandle = streamHandle; _allocator = allocator; _receiveBufferSizeEstimate = new ReceiveBufferSizeEstimate(); _pendingRead = new PendingRead(); }
internal Pipeline(StreamHandle streamHandle, ByteBufferAllocator allocator) { Contract.Requires(streamHandle != null); Contract.Requires(allocator != null); this.streamHandle = streamHandle; this.allocator = allocator; this.receiveBufferSizeEstimate = new ReceiveBufferSizeEstimate(); this.bufferQueue = new BufferQueue(); }
internal Pipeline(StreamHandle streamHandle, PooledByteBufferAllocator allocator) { Contract.Requires(streamHandle != null); Contract.Requires(allocator != null); this.streamHandle = streamHandle; this.allocator = allocator; this.receiveBufferSizeEstimate = new ReceiveBufferSizeEstimate(); this.pendingRead = new PendingRead(); }