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