3 writes to _dataLength
Microsoft.Extensions.AI.OpenAI (3)
src\Shared\ServerSentEvents\SseParser_1.cs (3)
348_dataLength = 0; 416_dataBuffer[_dataLength++] = LF; 420_dataLength += fieldValue.Length;
5 references to _dataLength
Microsoft.Extensions.AI.OpenAI (5)
src\Shared\ServerSentEvents\SseParser_1.cs (5)
89/// <remarks>This can be different than <see cref="_dataLength"/> != 0 if empty data was appended.</remarks> 343T data = _itemParser(_eventType ?? SseParser.EventTypeDefault, _dataBuffer.AsSpan(0, _dataLength)); 407if (_dataBuffer is null || _dataLength + _lineLength + 1 > _dataBuffer.Length) 409GrowBuffer(ref _dataBuffer, _dataLength + _lineLength + 1); 419fieldValue.CopyTo(_dataBuffer.AsSpan(_dataLength));