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