7 writes to _position
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (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.MessagePack (17)
src\SignalR\common\Shared\MemoryBufferWriter.cs (17)
113return _currentSegment.AsMemory(_position, _currentSegment.Length - _position); 120return _currentSegment.AsSpan(_position, _currentSegment.Length - _position); 135destination.Write(_currentSegment.AsSpan(0, _position)); 143return destination.WriteAsync(_currentSegment, 0, _position, cancellationToken); 154var remainingSize = _currentSegment?.Length - _position ?? 0; 183_completedSegments.Add(new CompletedBuffer(_currentSegment, _position)); 211await 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)); 273Debug.Assert(_bytesWritten == totalWritten + _position); 284if (_currentSegment != null && (uint)_position < (uint)_currentSegment.Length) 286_currentSegment[_position] = value; 300var position = _position; 317if (_currentSegment != null && span.TryCopyTo(_currentSegment.AsSpan(_position))) 335_completedSegments.Add(new CompletedBuffer(_currentSegment, _position));