2 instantiations of WriteBufferWrapper
System.ServiceModel.Primitives (2)
System\ServiceModel\Channels\ProducerConsumerStream.cs (2)
89_buffer.TrySetResult(new WriteBufferWrapper(buffer, offset, count)); 197public static readonly WriteBufferWrapper EmptyContainer = new WriteBufferWrapper(null, -1, -1, true);
17 references to WriteBufferWrapper
System.ServiceModel.Primitives (17)
System\ServiceModel\Channels\ProducerConsumerStream.cs (17)
15private TaskCompletionSource<WriteBufferWrapper> _buffer; 17private WriteBufferWrapper _currentBuffer; 22_buffer = new TaskCompletionSource<WriteBufferWrapper>(); 24_currentBuffer = WriteBufferWrapper.EmptyContainer; 36_currentBuffer = WriteBufferWrapper.EmptyContainer; 88Contract.Assert(_currentBuffer == WriteBufferWrapper.EmptyContainer, "The current buffer should be the EmptyContainer"); 133if (_currentBuffer == WriteBufferWrapper.EmptyContainer) 136_buffer = new TaskCompletionSource<WriteBufferWrapper>(); 194private struct WriteBufferWrapper : IEquatable<WriteBufferWrapper> 197public static readonly WriteBufferWrapper EmptyContainer = new WriteBufferWrapper(null, -1, -1, true); 223if (obj is WriteBufferWrapper) 225return Equals((WriteBufferWrapper)obj); 231public bool Equals(WriteBufferWrapper other) 249public static bool operator ==(WriteBufferWrapper a, WriteBufferWrapper b) 254public static bool operator !=(WriteBufferWrapper a, WriteBufferWrapper b)