5 writes to _lastSearchedForNewline
Microsoft.Extensions.AI.OpenAI (5)
src\Shared\ServerSentEvents\SseParser_1.cs (5)
140
_lastSearchedForNewline
= -1;
163
_lastSearchedForNewline
= _lineOffset + _lineLength;
220
_lastSearchedForNewline
= -1;
243
_lastSearchedForNewline
= searchOffset + searchLength;
316
_lastSearchedForNewline
-= _lineOffset;
4 references to _lastSearchedForNewline
Microsoft.Extensions.AI.OpenAI (4)
src\Shared\ServerSentEvents\SseParser_1.cs (4)
271
if (
_lastSearchedForNewline
> _lineOffset)
273
searchOffset =
_lastSearchedForNewline
;
274
searchLength = _lineLength - (
_lastSearchedForNewline
- _lineOffset);
314
if (
_lastSearchedForNewline
>= 0)