44 instantiations of BufferScope
Microsoft.Build.Framework (8)
Collections\RefArrayBuilder.cs (3)
32_scope = new BufferScope<T>(initialCapacity); 44_scope = new BufferScope<T>(scratchBuffer); 313var newScope = new BufferScope<T>(nextCapacity);
NativeMethods.cs (5)
228using BufferScope<byte> buffer = new((int)len); 724using BufferScope<char> buffer = new(stackalloc char[(int)PInvoke.MAX_PATH]); 766using BufferScope<char> buffer = new(stackalloc char[(int)PInvoke.MAX_PATH]); 1179using BufferScope<char> buffer = new(stackalloc char[(int)PInvoke.MAX_PATH]); 1224using BufferScope<char> buffer = new(stackalloc char[(int)PInvoke.MAX_PATH]);
Microsoft.Build.Framework.UnitTests (34)
BufferScope_Tests.cs (34)
19using BufferScope<char> buffer = new(16); 27using BufferScope<char> buffer = new(initial); 35using BufferScope<byte> buffer = new(initial, 16); 43using BufferScope<byte> buffer = new(initial, 128); 50using BufferScope<int> buffer = new(4); 62using BufferScope<char> buffer = new(10); 78using BufferScope<char> buffer = new(initial); 91using BufferScope<int> buffer = new(64); 101using BufferScope<byte> buffer = new(initial); 112using BufferScope<int> buffer = new(initial); 129using BufferScope<int> buffer = new(8); 137using BufferScope<int> buffer = new(8); 146using BufferScope<int> buffer = new(8); 155using BufferScope<int> buffer = new(stackalloc int[3]); 171using BufferScope<int> buffer = new(0); 178using BufferScope<int> buffer = new([]); 185using BufferScope<char> buffer = new(stackalloc char[10], 10); 192using BufferScope<int> buffer = new(10); 204using BufferScope<int> buffer = new(5); 221using BufferScope<char> buffer = new(stackalloc char[5]); 237using BufferScope<int> buffer = new(stackalloc int[10]); 252using BufferScope<byte> buffer = new(10); 260using BufferScope<int> buffer = new(10); 268using BufferScope<string> buffer = new([]); 283using BufferScope<char> buffer = new([]); 290using BufferScope<byte> buffer = new(stackalloc byte[10]); 304using BufferScope<int> buffer = new([]); 312using BufferScope<char> buffer = new(64); 330using BufferScope<string> buffer = new(5); 341using BufferScope<DateTime> buffer = new(3); 355using BufferScope<int> buffer = new(stackalloc int[5], 10); 386BufferScope<byte> buffer = new(16); 395BufferScope<int> buffer = new(8); 405using BufferScope<char> buffer = new(stackalloc char[8]);
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\AssemblyInformation.cs (1)
639using BufferScope<char> buffer = new(stackalloc char[bufferLength]);
ComReference.cs (1)
408using BufferScope<char> buffer = new(stackalloc char[(int)PInvoke.MAX_PATH]);
51 references to BufferScope
Microsoft.Build.Framework (15)
Collections\RefArrayBuilder.cs (2)
23private BufferScope<T> _scope; 313var newScope = new BufferScope<T>(nextCapacity);
NativeMethods.cs (5)
228using BufferScope<byte> buffer = new((int)len); 724using BufferScope<char> buffer = new(stackalloc char[(int)PInvoke.MAX_PATH]); 766using BufferScope<char> buffer = new(stackalloc char[(int)PInvoke.MAX_PATH]); 1179using BufferScope<char> buffer = new(stackalloc char[(int)PInvoke.MAX_PATH]); 1224using BufferScope<char> buffer = new(stackalloc char[(int)PInvoke.MAX_PATH]);
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)
Microsoft.Build.Framework.UnitTests (34)
BufferScope_Tests.cs (34)
19using BufferScope<char> buffer = new(16); 27using BufferScope<char> buffer = new(initial); 35using BufferScope<byte> buffer = new(initial, 16); 43using BufferScope<byte> buffer = new(initial, 128); 50using BufferScope<int> buffer = new(4); 62using BufferScope<char> buffer = new(10); 78using BufferScope<char> buffer = new(initial); 91using BufferScope<int> buffer = new(64); 101using BufferScope<byte> buffer = new(initial); 112using BufferScope<int> buffer = new(initial); 129using BufferScope<int> buffer = new(8); 137using BufferScope<int> buffer = new(8); 146using BufferScope<int> buffer = new(8); 155using BufferScope<int> buffer = new(stackalloc int[3]); 171using BufferScope<int> buffer = new(0); 178using BufferScope<int> buffer = new([]); 185using BufferScope<char> buffer = new(stackalloc char[10], 10); 192using BufferScope<int> buffer = new(10); 204using BufferScope<int> buffer = new(5); 221using BufferScope<char> buffer = new(stackalloc char[5]); 237using BufferScope<int> buffer = new(stackalloc int[10]); 252using BufferScope<byte> buffer = new(10); 260using BufferScope<int> buffer = new(10); 268using BufferScope<string> buffer = new([]); 283using BufferScope<char> buffer = new([]); 290using BufferScope<byte> buffer = new(stackalloc byte[10]); 304using BufferScope<int> buffer = new([]); 312using BufferScope<char> buffer = new(64); 330using BufferScope<string> buffer = new(5); 341using BufferScope<DateTime> buffer = new(3); 355using BufferScope<int> buffer = new(stackalloc int[5], 10); 386BufferScope<byte> buffer = new(16); 395BufferScope<int> buffer = new(8); 405using BufferScope<char> buffer = new(stackalloc char[8]);
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\AssemblyInformation.cs (1)
639using BufferScope<char> buffer = new(stackalloc char[bufferLength]);
ComReference.cs (1)
408using BufferScope<char> buffer = new(stackalloc char[(int)PInvoke.MAX_PATH]);