5 writes to _lineLength
System.Net.ServerSentEvents (5)
System\Net\ServerSentEvents\SseParser_1.cs (5)
138_lineLength -= advance; 218_lineLength -= advance; 486_lineLength += bytesRead; 513_lineLength += bytesRead; 535_lineLength -= 3;
23 references to _lineLength
System.Net.ServerSentEvents (23)
System\Net\ServerSentEvents\SseParser_1.cs (23)
109while (FillLineBuffer() != 0 && _lineLength < Utf8Bom.Length) ; 127_newlineIndex - _lineOffset + 1 < _lineLength || // we must have CR and we have whatever comes after it 147_lastSearchedForNewline = _lineOffset + _lineLength; 189while (await FillLineBufferAsync(cancellationToken).ConfigureAwait(false) != 0 && _lineLength < Utf8Bom.Length) ; 207_newlineIndex - _lineOffset + 1 < _lineLength || // newline is CR, and we have whatever comes after it 258searchLength = _lineLength - (_lastSearchedForNewline - _lineOffset); 263searchLength = _lineLength; 266Debug.Assert(searchOffset >= _lineOffset, $"{searchOffset}, {_lineLength}"); 267Debug.Assert(searchOffset <= _lineOffset + _lineLength, $"{searchOffset}, {_lineOffset}, {_lineLength}"); 271Debug.Assert(searchLength <= _lineLength, $"{searchLength}, {_lineLength}"); 276Debug.Assert(_newlineIndex - _lineOffset < _lineLength, "Expected to be positioned at a non-empty newline"); 277return _lineBuffer.AsSpan(_newlineIndex, _lineLength - (_newlineIndex - _lineOffset)).StartsWith(CRLF) ? 2 : 1; 293if (_lineOffset + _lineLength == _lineBuffer.Length) 297_lineBuffer.AsSpan(_lineOffset, _lineLength).CopyTo(_lineBuffer); 304else if (_lineLength == _lineBuffer.Length) 375ReadOnlySpan<byte> remainder = _lineBuffer.AsSpan(_newlineIndex + newlineLength, _lineLength - line.Length - newlineLength); 390if (_dataBuffer is null || _dataLength + _lineLength + 1 > _dataBuffer.Length) 392GrowBuffer(ref _dataBuffer, _dataLength + _lineLength + 1); 476int offset = _lineOffset + _lineLength; 502int offset = _lineOffset + _lineLength; 532if (_lineBuffer.AsSpan(0, _lineLength).StartsWith(Utf8Bom))