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)
109
while (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
;
189
while (await FillLineBufferAsync(cancellationToken).ConfigureAwait(false) != 0 &&
_lineLength
< Utf8Bom.Length) ;
207
_newlineIndex - _lineOffset + 1 <
_lineLength
|| // newline is CR, and we have whatever comes after it
258
searchLength =
_lineLength
- (_lastSearchedForNewline - _lineOffset);
263
searchLength =
_lineLength
;
266
Debug.Assert(searchOffset >= _lineOffset, $"{searchOffset}, {
_lineLength
}");
267
Debug.Assert(searchOffset <= _lineOffset +
_lineLength
, $"{searchOffset}, {_lineOffset}, {
_lineLength
}");
271
Debug.Assert(searchLength <=
_lineLength
, $"{searchLength}, {
_lineLength
}");
276
Debug.Assert(_newlineIndex - _lineOffset <
_lineLength
, "Expected to be positioned at a non-empty newline");
277
return _lineBuffer.AsSpan(_newlineIndex,
_lineLength
- (_newlineIndex - _lineOffset)).StartsWith(CRLF) ? 2 : 1;
293
if (_lineOffset +
_lineLength
== _lineBuffer.Length)
297
_lineBuffer.AsSpan(_lineOffset,
_lineLength
).CopyTo(_lineBuffer);
304
else if (
_lineLength
== _lineBuffer.Length)
375
ReadOnlySpan<byte> remainder = _lineBuffer.AsSpan(_newlineIndex + newlineLength,
_lineLength
- line.Length - newlineLength);
390
if (_dataBuffer is null || _dataLength +
_lineLength
+ 1 > _dataBuffer.Length)
392
GrowBuffer(ref _dataBuffer, _dataLength +
_lineLength
+ 1);
476
int offset = _lineOffset +
_lineLength
;
502
int offset = _lineOffset +
_lineLength
;
532
if (_lineBuffer.AsSpan(0,
_lineLength
).StartsWith(Utf8Bom))