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