3 writes to _dataLength
System.Net.ServerSentEvents (3)
System\Net\ServerSentEvents\SseParser_1.cs (3)
331
_dataLength
= 0;
399
_dataBuffer[
_dataLength
++] = LF;
402
_dataLength
+= fieldValue.Length;
5 references to _dataLength
System.Net.ServerSentEvents (5)
System\Net\ServerSentEvents\SseParser_1.cs (5)
73
/// <remarks>This can be different than <see cref="
_dataLength
"/> != 0 if empty data was appended.</remarks>
326
T data = _itemParser(_eventType ?? SseParser.EventTypeDefault, _dataBuffer.AsSpan(0,
_dataLength
));
390
if (_dataBuffer is null ||
_dataLength
+ _lineLength + 1 > _dataBuffer.Length)
392
GrowBuffer(ref _dataBuffer,
_dataLength
+ _lineLength + 1);
401
fieldValue.CopyTo(_dataBuffer.AsSpan(
_dataLength
));