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