39 instantiations of BufferScope
Microsoft.Build.Framework (3)
Collections\RefArrayBuilder.cs (3)
32
_scope = new
BufferScope
<T>(initialCapacity);
44
_scope = new
BufferScope
<T>(scratchBuffer);
313
var newScope = new
BufferScope
<T>(nextCapacity);
Microsoft.Build.Framework.UnitTests (36)
BufferScopeTests.cs (36)
17
using BufferScope<char> buffer =
new
(stackalloc char[10]);
26
using BufferScope<char> buffer =
new
(stackalloc char[10]);
37
using BufferScope<char> buffer =
new
(stackalloc char[10]);
52
using BufferScope<char> buffer =
new
(32);
63
using BufferScope<char> buffer =
new
(64);
78
using BufferScope<int> buffer =
new
(0);
85
using BufferScope<byte> buffer =
new
(5);
92
using BufferScope<int> buffer =
new
([]);
99
using BufferScope<char> buffer =
new
(stackalloc char[20], 10);
110
using BufferScope<char> buffer =
new
(stackalloc char[5], 20);
117
using BufferScope<char> buffer =
new
(stackalloc char[10], 10);
124
using BufferScope<int> buffer =
new
(20);
137
using BufferScope<int> buffer =
new
(10);
150
using BufferScope<char> buffer =
new
(stackalloc char[5]);
170
using BufferScope<int> buffer =
new
(5);
187
using BufferScope<char> buffer =
new
(stackalloc char[5]);
203
using BufferScope<int> buffer =
new
(stackalloc int[10]);
218
using BufferScope<byte> buffer =
new
(10);
226
using BufferScope<char> buffer =
new
(stackalloc char[10]);
241
using BufferScope<int> buffer =
new
(10);
249
using BufferScope<double> buffer =
new
(5);
262
using BufferScope<int> buffer =
new
(stackalloc int[3]);
277
using BufferScope<char> buffer =
new
(stackalloc char[3]);
292
using BufferScope<int> buffer =
new
(stackalloc int[5]);
310
using BufferScope<string> buffer =
new
([]);
324
using BufferScope<char> buffer =
new
(stackalloc char[5]);
338
using BufferScope<char> buffer =
new
([]);
346
using BufferScope<byte> buffer =
new
(stackalloc byte[10]);
361
using BufferScope<int> buffer =
new
([]);
369
BufferScope<int> buffer =
new
(100);
379
BufferScope<int> buffer =
new
(stackalloc int[10]);
392
using BufferScope<long> buffer =
new
(minimumLength);
403
using BufferScope<short> buffer =
new
(5);
411
using BufferScope<string> buffer =
new
(5);
421
using BufferScope<DateTime> buffer =
new
(3);
435
using BufferScope<int> buffer =
new
(stackalloc int[5], 10);
46 references to BufferScope
Microsoft.Build.Framework (10)
Collections\RefArrayBuilder.cs (2)
23
private
BufferScope
<T> _scope;
313
var
newScope = new BufferScope<T>(nextCapacity);
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 (36)
BufferScopeTests.cs (36)
17
using
BufferScope
<char> buffer = new(stackalloc char[10]);
26
using
BufferScope
<char> buffer = new(stackalloc char[10]);
37
using
BufferScope
<char> buffer = new(stackalloc char[10]);
52
using
BufferScope
<char> buffer = new(32);
63
using
BufferScope
<char> buffer = new(64);
78
using
BufferScope
<int> buffer = new(0);
85
using
BufferScope
<byte> buffer = new(5);
92
using
BufferScope
<int> buffer = new([]);
99
using
BufferScope
<char> buffer = new(stackalloc char[20], 10);
110
using
BufferScope
<char> buffer = new(stackalloc char[5], 20);
117
using
BufferScope
<char> buffer = new(stackalloc char[10], 10);
124
using
BufferScope
<int> buffer = new(20);
137
using
BufferScope
<int> buffer = new(10);
150
using
BufferScope
<char> buffer = new(stackalloc char[5]);
170
using
BufferScope
<int> buffer = new(5);
187
using
BufferScope
<char> buffer = new(stackalloc char[5]);
203
using
BufferScope
<int> buffer = new(stackalloc int[10]);
218
using
BufferScope
<byte> buffer = new(10);
226
using
BufferScope
<char> buffer = new(stackalloc char[10]);
241
using
BufferScope
<int> buffer = new(10);
249
using
BufferScope
<double> buffer = new(5);
262
using
BufferScope
<int> buffer = new(stackalloc int[3]);
277
using
BufferScope
<char> buffer = new(stackalloc char[3]);
292
using
BufferScope
<int> buffer = new(stackalloc int[5]);
310
using
BufferScope
<string> buffer = new([]);
324
using
BufferScope
<char> buffer = new(stackalloc char[5]);
338
using
BufferScope
<char> buffer = new([]);
346
using
BufferScope
<byte> buffer = new(stackalloc byte[10]);
361
using
BufferScope
<int> buffer = new([]);
369
BufferScope
<int> buffer = new(100);
379
BufferScope
<int> buffer = new(stackalloc int[10]);
392
using
BufferScope
<long> buffer = new(minimumLength);
403
using
BufferScope
<short> buffer = new(5);
411
using
BufferScope
<string> buffer = new(5);
421
using
BufferScope
<DateTime> buffer = new(3);
435
using
BufferScope
<int> buffer = new(stackalloc int[5], 10);