8 writes to _activeStart
Microsoft.Extensions.AI.OpenAI (8)
src\Shared\ServerSentEvents\ArrayBuffer.cs (8)
47_activeStart = 0; 57_activeStart = 0; 63_activeStart = 0; 81_activeStart = 0; 107_activeStart += byteCount; 111_activeStart = 0; 149_activeStart = 0; 174_activeStart = 0;
13 references to _activeStart
Microsoft.Extensions.AI.OpenAI (13)
src\Shared\ServerSentEvents\ArrayBuffer.cs (13)
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); 100public readonly int ActiveStartOffset => _activeStart; 109if (_activeStart == _availableStart) 138Debug.Assert(_usePool && _activeStart == 0 && _availableStart == 0); 143int totalFree = _activeStart + AvailableLength; 147Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0, ActiveLength); 170Buffer.BlockCopy(oldBytes, _activeStart, newBytes, 0, ActiveLength);