11 references to _buffer
Microsoft.Extensions.AI.OpenAI (11)
src\Shared\ServerSentEvents\PooledByteBufferWriter.cs (11)
16
public void Advance(int count) =>
_buffer
.Commit(count);
20
_buffer
.EnsureAvailableSpace(Math.Max(sizeHint, MinimumBufferSize));
21
return
_buffer
.AvailableMemory;
26
_buffer
.EnsureAvailableSpace(Math.Max(sizeHint, MinimumBufferSize));
27
return
_buffer
.AvailableSpan;
30
public ReadOnlyMemory<byte> WrittenMemory =>
_buffer
.ActiveMemory;
31
public int Capacity =>
_buffer
.Capacity;
32
public int WrittenCount =>
_buffer
.ActiveLength;
33
public void Reset() =>
_buffer
.Discard(
_buffer
.ActiveLength);
34
public void Dispose() =>
_buffer
.Dispose();