3 writes to _completedSegments
Microsoft.AspNetCore.OpenApi (3)
src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>(); 341_completedSegments = null;
21 references to _completedSegments
Microsoft.AspNetCore.OpenApi (21)
src\SignalR\common\Shared\MemoryBufferWriter.cs (21)
83if (_completedSegments != null) 85for (var i = 0; i < _completedSegments.Count; i++) 87_completedSegments[i].Return(); 90_completedSegments.Clear(); 125if (_completedSegments != null) 128var count = _completedSegments.Count; 131destination.Write(_completedSegments[i].Span); 140if (_completedSegments == null && _currentSegment is not null) 175if (_completedSegments == null) 183_completedSegments.Add(new CompletedBuffer(_currentSegment, _position)); 193if (_completedSegments != null) 196var count = _completedSegments.Count; 199var segment = _completedSegments[i]; 229if (_completedSegments != null) 232var count = _completedSegments.Count; 235var segment = _completedSegments[i]; 258if (_completedSegments != null) 261var count = _completedSegments.Count; 264var segment = _completedSegments[i]; 335_completedSegments.Add(new CompletedBuffer(_currentSegment, _position)); 338var written = new WrittenBuffers(_completedSegments, _bytesWritten);