1 write to _dataBuffer
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\SseParser_1.cs (1)
392GrowBuffer(ref _dataBuffer, _dataLength + _lineLength + 1);
11 references to _dataBuffer
System.Net.ServerSentEvents (11)
System\Net\ServerSentEvents\SseParser_1.cs (11)
70/// <summary>The length of valid data in <see cref="_dataBuffer"/>, starting from index 0.</summary> 72/// <summary>Whether data has been appended to <see cref="_dataBuffer"/>.</summary> 165if (_dataBuffer is not null) 167ArrayPool<byte>.Shared.Return(_dataBuffer); 245if (_dataBuffer is not null) 247ArrayPool<byte>.Shared.Return(_dataBuffer); 326T data = _itemParser(_eventType ?? SseParser.EventTypeDefault, _dataBuffer.AsSpan(0, _dataLength)); 390if (_dataBuffer is null || _dataLength + _lineLength + 1 > _dataBuffer.Length) 399_dataBuffer[_dataLength++] = LF; 401fieldValue.CopyTo(_dataBuffer.AsSpan(_dataLength));