1 instantiation of PooledArray
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
BufferExtensions.cs (1)
43
=>
new
(pool, minimumLength, clearOnReturn);
21 references to PooledArray
Microsoft.AspNetCore.Razor.Utilities.Shared (14)
BufferExtensions.cs (8)
23
public static
PooledArray
<T> GetPooledArray<T>(this ArrayPool<T> pool, int minimumLength)
42
public static
PooledArray
<T> GetPooledArray<T>(this ArrayPool<T> pool, int minimumLength, bool clearOnReturn)
61
public static
PooledArray
<T> GetPooledArray<T>(this ArrayPool<T> pool, int minimumLength, out T[] array)
83
public static
PooledArray
<T> GetPooledArray<T>(this ArrayPool<T> pool, int minimumLength, bool clearOnReturn, out T[] array)
85
var
result = pool.GetPooledArray(minimumLength, clearOnReturn);
104
public static
PooledArray
<T> GetPooledArraySpan<T>(this ArrayPool<T> pool, int minimumLength, out Span<T> span)
124
public static
PooledArray
<T> GetPooledArraySpan<T>(this ArrayPool<T> pool, int minimumLength, bool clearOnReturn, out Span<T> span)
126
var
result = pool.GetPooledArray(minimumLength, clearOnReturn);
EnumerableExtensions.cs (1)
578
using
var
keys = SortKey<TKey>.GetPooledArray(minimumLength: length);
ImmutableArrayExtensions.cs (1)
1249
using
var
keys = SortKey<TKey>.GetPooledArray(minimumLength: length);
ImmutableArrayExtensions_Unsafe.cs (1)
183
using
var
keys = SortKey<TKey>.GetPooledArray(minimumLength: length);
PooledObjects\PooledArray`1.cs (1)
20
/// Returns a non-null array until <see cref="
PooledArray
{T}"/> is disposed.
ReadOnlyListExtensions.cs (1)
1465
using
var
keys = SortKey<TKey>.GetPooledArray(minimumLength: length);
Utilities\SortKey`1.cs (1)
11
public static
PooledArray
<SortKey<T>> GetPooledArray(int minimumLength)
Microsoft.CodeAnalysis.Razor.Compiler (7)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (1)
572
using
var
_ = ArrayPool<SyntaxTokenList>.Shared.GetPooledArraySpan(5, out var tokenLists);
Language\TagHelperCollection_Factories.cs (5)
183
using
var
_ = CollectMergeableCollections(collections, out var mergeableCollections);
192
static
PooledArray
<TagHelperCollection> CollectMergeableCollections(
195
var
pooledArray = ArrayPool<TagHelperCollection>.Shared.GetPooledArraySpan(
278
using
var
_ = ArrayPool<TagHelperCollection>.Shared.GetPooledArraySpan(
333
using
var
_ = ArrayPool<TagHelperCollection>.Shared.GetPooledArraySpan(
Language\TagHelperDiscoverer.cs (1)
79
using
var
_ = ArrayPool<TagHelperProducer>.Shared.GetPooledArraySpan(