1 write to _dataBuffer
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\SseParser_1.cs (1)
392
GrowBuffer(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>
165
if (
_dataBuffer
is not null)
167
ArrayPool<byte>.Shared.Return(
_dataBuffer
);
245
if (
_dataBuffer
is not null)
247
ArrayPool<byte>.Shared.Return(
_dataBuffer
);
326
T data = _itemParser(_eventType ?? SseParser.EventTypeDefault,
_dataBuffer
.AsSpan(0, _dataLength));
390
if (
_dataBuffer
is null || _dataLength + _lineLength + 1 >
_dataBuffer
.Length)
399
_dataBuffer
[_dataLength++] = LF;
401
fieldValue.CopyTo(
_dataBuffer
.AsSpan(_dataLength));