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> 326T data = _itemParser(_eventType ?? SseParser.EventTypeDefault, _dataBuffer.AsSpan(0, _dataLength)); 390if (_dataBuffer is null || _dataLength + _lineLength + 1 > _dataBuffer.Length) 392GrowBuffer(ref _dataBuffer, _dataLength + _lineLength + 1); 401fieldValue.CopyTo(_dataBuffer.AsSpan(_dataLength));