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)
44
return _buffer != null && chars <= (_buffer.Length -
_currentUsed
);
49
if (_buffer != null &&
_currentUsed
< _buffer.Length)
51
_buffer[
_currentUsed
] = value;
71
var remaining = _buffer!.Length -
_currentUsed
;
74
value.CopyTo(index, _buffer,
_currentUsed
, copy);
80
if (
_currentUsed
== _buffer.Length)
104
var remaining = _buffer!.Length -
_currentUsed
;
107
Array.Copy(chars, index, _buffer,
_currentUsed
, copy);
112
if (
_currentUsed
== _buffer.Length)
137
if (_buffer != null &&
_currentUsed
> 0)
139
if (
_currentUsed
< _buffer.Length)
141
Array.Resize(ref _buffer,
_currentUsed
);