4 instantiations of PooledBuffer
Microsoft.Build.Framework (4)
Utilities\ArrayPoolExtensions.cs (4)
29
return
new
(pool, array, array.Length, array.Length);
60
return
new
(pool, array, array.Length, clearLength);
83
return
new
(pool, array, length, length);
116
return
new
(pool, array, length, clearLength);
12 references to PooledBuffer
Microsoft.Build (4)
BackEnd\Components\Scheduler\Scheduler.cs (3)
482
using
var
_ = _requestBufferPool.RentSpan(_schedulingData.UnscheduledRequestsCount, out var unscheduledRequests);
1055
using
var
rental = _requestBufferPool.RentSpan(
2009
using
var
_ = _requestBufferPool.RentSpan(_schedulingData.UnscheduledRequestsCount, out var unscheduledRequests);
Logging\BinaryLogger\Postprocessing\StreamExtensions.cs (1)
31
using
var
_ = BufferPool<byte>.Shared.Rent(4096, out byte[] buffer);
Microsoft.Build.Framework (6)
Utilities\ArrayPoolExtensions.cs (4)
24
public static
PooledBuffer
<T> Rent<T>(this ArrayPool<T> pool, int minimumLength, out T[] array)
53
public static
PooledBuffer
<T> Rent<T>(this ArrayPool<T> pool, int minimumLength, int clearLength, out T[] array)
77
public static
PooledBuffer
<T> RentSpan<T>(this ArrayPool<T> pool, int length, out Span<T> span)
108
public static
PooledBuffer
<T> RentSpan<T>(this ArrayPool<T> pool, int length, int clearLength, out Span<T> span)
Utilities\BufferScope.cs (1)
23
/// <see cref="
PooledBuffer
{T}"/>.
Utilities\PooledBuffer.cs (1)
46
ObjectDisposedException.ThrowIf(array is null, typeof(
PooledBuffer
<T>));
Microsoft.Build.Tasks.Core (2)
Hash.cs (2)
70
using
var
shaBufferScope = BufferPool<byte>.Shared.Rent(ShaBufferSize, out byte[] shaBuffer);
74
using
var
itemSpecBufferScope = BufferPool<byte>.Shared.Rent(itemSpecChunkByteBufferSize, out byte[] itemSpecChunkByteBuffer);