2 writes to _chars
Microsoft.NET.ProjectData.Tasks (2)
12 references to _chars
Microsoft.NET.ProjectData.Tasks (12)
PooledCacheRender.cs (12)
56 public string GetText() => new string(this._chars, 0, this._charLength);
61 this._chars[this._charLength++] = value;
70 value.CopyTo(0, this._chars, this._charLength, value.Length);
80 Array.Copy(buffer, index, this._chars, this._charLength, count);
116 this._charLength = NormalizeNewLinesInPlace(this._chars, this._charLength);
117 int byteCount = ProjectDataWriter.Utf8NoBom.GetByteCount(this._chars, 0, this._charLength);
119 this._byteLength = ProjectDataWriter.Utf8NoBom.GetBytes(this._chars, 0, this._charLength, this._bytes, 0);
124 if (required <= this._chars.Length)
127 int newSize = Math.Max(required, this._chars.Length * 2);
129 Array.Copy(this._chars, 0, larger, 0, this._charLength);
130 ArrayPool<char>.Shared.Return(this._chars);
138 ArrayPool<char>.Shared.Return(this._chars);