7 writes to _position
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (7)
src\SignalR\common\Shared\MemoryBufferWriter.cs (7)
100
_position
= 0;
106
_position
+= count;
188
_position
= 0;
294
_position
++;
305
_position
= position + count;
319
_position
+= span.Length;
343
_position
= 0;
17 references to _position
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (17)
src\SignalR\common\Shared\MemoryBufferWriter.cs (17)
113
return _currentSegment.AsMemory(
_position
, _currentSegment.Length -
_position
);
120
return _currentSegment.AsSpan(
_position
, _currentSegment.Length -
_position
);
135
destination.Write(_currentSegment.AsSpan(0,
_position
));
143
return destination.WriteAsync(_currentSegment, 0,
_position
, cancellationToken);
154
var remainingSize = _currentSegment?.Length -
_position
?? 0;
183
_completedSegments.Add(new CompletedBuffer(_currentSegment,
_position
));
211
await destination.WriteAsync(_currentSegment.AsMemory(0,
_position
), cancellationToken).ConfigureAwait(false);
242
_currentSegment.AsSpan(0,
_position
).CopyTo(result.AsSpan(totalWritten));
271
_currentSegment.AsSpan(0,
_position
).CopyTo(span.Slice(totalWritten));
273
Debug.Assert(_bytesWritten == totalWritten +
_position
);
284
if (_currentSegment != null && (uint)
_position
< (uint)_currentSegment.Length)
286
_currentSegment[
_position
] = value;
300
var position =
_position
;
317
if (_currentSegment != null && span.TryCopyTo(_currentSegment.AsSpan(
_position
)))
335
_completedSegments.Add(new CompletedBuffer(_currentSegment,
_position
));