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