1 instantiation of PooledStringBuilder
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\PooledStringBuilder.cs (1)
60
pool = new ObjectPool<PooledStringBuilder>(() => new
PooledStringBuilder
(pool!), 32);
10 references to PooledStringBuilder
System.Reflection.Metadata (10)
System\Reflection\Internal\Utilities\PooledStringBuilder.cs (8)
20
private readonly ObjectPool<
PooledStringBuilder
> _pool;
22
private PooledStringBuilder(ObjectPool<
PooledStringBuilder
> pool)
54
private static readonly ObjectPool<
PooledStringBuilder
> s_poolInstance = CreatePool();
57
public static ObjectPool<
PooledStringBuilder
> CreatePool()
59
ObjectPool<
PooledStringBuilder
>? pool = null;
60
pool = new ObjectPool<
PooledStringBuilder
>(() => new PooledStringBuilder(pool!), 32);
64
public static
PooledStringBuilder
GetInstance()
66
var
builder = s_poolInstance.Allocate();
System\Reflection\Metadata\Internal\BlobHeap.cs (2)
196
var
pooledBuilder =
PooledStringBuilder
.GetInstance();