5 writes to _index
Microsoft.DotNet.HotReload.Client.Tests (5)
ArrayBufferWriter.cs (5)
38_index = 0; 55_index = 0; 100_index = 0; 115public void ResetWrittenCount() => _index = 0; 137_index += count;
14 references to _index
Microsoft.DotNet.HotReload.Client.Tests (14)
ArrayBufferWriter.cs (14)
61public ReadOnlyMemory<T> WrittenMemory => _buffer.AsMemory(0, _index); 66public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0, _index); 71public int WrittenCount => _index; 81public int FreeCapacity => _buffer.Length - _index; 98Debug.Assert(_buffer.Length >= _index); 99_buffer.AsSpan(0, _index).Clear(); 134if (_index > _buffer.Length - count) 167Debug.Assert(_buffer.Length > _index); 168return _buffer.AsMemory(_index); 174Debug.Assert(_buffer.Length > _index); 175return new ArraySegment<T>(_buffer, _index, _buffer.Length - _index); 205Debug.Assert(_buffer.Length > _index); 206return _buffer.AsSpan(_index);