3 writes to _chars
System.Security.Cryptography (3)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
22_chars = initialBuffer; 29_chars = _arrayToReturnToPool; 315_chars = _arrayToReturnToPool = poolArray;
39 references to _chars
System.Security.Cryptography (39)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (39)
39Debug.Assert(value <= _chars.Length); 44public int Capacity => _chars.Length; 52if ((uint)capacity > (uint)_chars.Length) 64return ref MemoryMarshal.GetReference(_chars); 76_chars[Length] = '\0'; 78return ref MemoryMarshal.GetReference(_chars); 86return ref _chars[index]; 92string s = _chars.Slice(0, _pos).ToString(); 98public Span<char> RawChars => _chars; 109_chars[Length] = '\0'; 111return _chars.Slice(0, _pos); 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 120if (_chars.Slice(0, _pos).TryCopyTo(destination)) 136if (_pos > _chars.Length - count) 142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 143_chars.Slice(index, count).Fill(value); 156if (_pos > (_chars.Length - count)) 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 167.CopyTo(_chars.Slice(index)); 175Span<char> chars = _chars; 196if (s.Length == 1 && (uint)pos < (uint)_chars.Length) // very common case, e.g. appending strings from NumberFormatInfo like separators, percent symbols, etc. 198_chars[pos] = s[0]; 210if (pos > _chars.Length - s.Length) 219.CopyTo(_chars.Slice(pos)); 225if (_pos > _chars.Length - count) 230Span<char> dst = _chars.Slice(_pos, count); 241if (pos > _chars.Length - length) 246Span<char> dst = _chars.Slice(_pos, length); 257if (pos > _chars.Length - value.Length) 262value.CopyTo(_chars.Slice(_pos)); 270if (origPos > _chars.Length - length) 276return _chars.Slice(origPos, length); 298Debug.Assert(_pos > _chars.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed."); 306Math.Min((uint)_chars.Length * 2, ArrayMaxLength)); 312_chars.Slice(0, _pos).CopyTo(poolArray);