4 writes to _currentUsed
Microsoft.CodeAnalysis (4)
Text\LargeTextWriter.cs (4)
52_currentUsed++; 76_currentUsed += copy; 108_currentUsed += copy; 146_currentUsed = 0;
12 references to _currentUsed
Microsoft.CodeAnalysis (12)
Text\LargeTextWriter.cs (12)
44return _buffer != null && chars <= (_buffer.Length - _currentUsed); 49if (_buffer != null && _currentUsed < _buffer.Length) 51_buffer[_currentUsed] = value; 71var remaining = _buffer!.Length - _currentUsed; 74value.CopyTo(index, _buffer, _currentUsed, copy); 80if (_currentUsed == _buffer.Length) 104var remaining = _buffer!.Length - _currentUsed; 107Array.Copy(chars, index, _buffer, _currentUsed, copy); 112if (_currentUsed == _buffer.Length) 137if (_buffer != null && _currentUsed > 0) 139if (_currentUsed < _buffer.Length) 141Array.Resize(ref _buffer, _currentUsed);