1 instantiation of PooledStringBuilder
Microsoft.CodeAnalysis.PooledObjects.Package (1)
PooledStringBuilder.cs (1)
84pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size);
11 references to PooledStringBuilder
Microsoft.CodeAnalysis.Debugging.Package (2)
CustomDebugInfoReader.cs (2)
216var pooled = PooledStringBuilder.GetInstance(); 246var pooledNameBuilder = PooledStringBuilder.GetInstance();
Microsoft.CodeAnalysis.PooledObjects.Package (9)
PooledStringBuilder.cs (9)
21private readonly ObjectPool<PooledStringBuilder> _pool; 23private PooledStringBuilder(ObjectPool<PooledStringBuilder> pool) 73private static readonly ObjectPool<PooledStringBuilder> s_poolInstance = CreatePool(); 81public static ObjectPool<PooledStringBuilder> CreatePool(int size = 32) 83ObjectPool<PooledStringBuilder>? pool = null; 84pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size); 88public static PooledStringBuilder GetInstance() 90var builder = s_poolInstance.Allocate(); 95public static implicit operator StringBuilder(PooledStringBuilder obj)