11 references to _buffer
System.Net.ServerSentEvents (11)
System\Net\ServerSentEvents\PooledByteBufferWriter.cs (11)
14
public void Advance(int count) =>
_buffer
.Commit(count);
18
_buffer
.EnsureAvailableSpace(Math.Max(sizeHint, MinimumBufferSize));
19
return
_buffer
.AvailableMemory;
24
_buffer
.EnsureAvailableSpace(Math.Max(sizeHint, MinimumBufferSize));
25
return
_buffer
.AvailableSpan;
28
public ReadOnlyMemory<byte> WrittenMemory =>
_buffer
.ActiveMemory;
29
public int Capacity =>
_buffer
.Capacity;
30
public int WrittenCount =>
_buffer
.ActiveLength;
31
public void Reset() =>
_buffer
.Discard(
_buffer
.ActiveLength);
32
public void Dispose() =>
_buffer
.Dispose();