8 writes to _availableStart
Microsoft.Extensions.AI.OpenAI (8)
src\Shared\ServerSentEvents\ArrayBuffer.cs (8)
48_availableStart = 0; 58_availableStart = 0; 64_availableStart = 0; 82_availableStart = 0; 112_availableStart = 0; 119_availableStart += byteCount; 148_availableStart = ActiveLength; 173_availableStart = ActiveLength;
10 references to _availableStart
Microsoft.Extensions.AI.OpenAI (10)
src\Shared\ServerSentEvents\ArrayBuffer.cs (10)
89public readonly int ActiveLength => _availableStart - _activeStart; 90public readonly Span<byte> ActiveSpan => new Span<byte>(_bytes, _activeStart, _availableStart - _activeStart); 91public readonly ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart); 92public readonly Memory<byte> ActiveMemory => new Memory<byte>(_bytes, _activeStart, _availableStart - _activeStart); 94public readonly int AvailableLength => _bytes.Length - _availableStart; 95public readonly Span<byte> AvailableSpan => _bytes.AsSpan(_availableStart); 96public readonly Memory<byte> AvailableMemory => _bytes.AsMemory(_availableStart); 97public readonly Memory<byte> AvailableMemorySliced(int length) => new Memory<byte>(_bytes, _availableStart, length); 109if (_activeStart == _availableStart) 138Debug.Assert(_usePool && _activeStart == 0 && _availableStart == 0);