7 instantiations of BufferScope
Microsoft.Build.Framework (7)
Collections\RefArrayBuilder.cs (3)
32_scope = new BufferScope<T>(initialCapacity); 44_scope = new BufferScope<T>(scratchBuffer); 313var newScope = new BufferScope<T>(nextCapacity);
Coordinator\CoordinatorSettings.cs (2)
153? new(stackalloc byte[byteCount]) 154: new(byteCount);
Utilities\ProcessExtensions.cs (2)
165using BufferScope<char> charBuffer = new(data.Length); 543using BufferScope<byte> buffer = new((int)size);
13 references to BufferScope
Microsoft.Build.Framework (13)
Collections\RefArrayBuilder.cs (2)
23private BufferScope<T> _scope; 313var newScope = new BufferScope<T>(nextCapacity);
Coordinator\CoordinatorSettings.cs (1)
152using BufferScope<byte> pipeNameBytes = byteCount <= 256
Utilities\BufferScope.cs (8)
20/// Initializes a new instance of the <see cref="BufferScope{T}"/>. 30/// Create the <see cref="BufferScope{T}"/> with an initial buffer. Useful for creating with an initial stack 41/// Create the <see cref="BufferScope{T}"/> with an initial buffer. Useful for creating with an initial stack 77/// Consider if creating new <see cref="BufferScope{T}"/> instances is possible and cleaner than using 150/// Implicitly converts a <see cref="BufferScope{T}"/> to a <see cref="Span{T}"/>. 154public static implicit operator Span<T>(BufferScope<T> scope) 158/// Implicitly converts a <see cref="BufferScope{T}"/> to a <see cref="ReadOnlySpan{T}"/>. 162public static implicit operator ReadOnlySpan<T>(BufferScope<T> scope)
Utilities\ProcessExtensions.cs (2)
165using BufferScope<char> charBuffer = new(data.Length); 543using BufferScope<byte> buffer = new((int)size);