2 writes to _array
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Servers\Kestrel\shared\PooledStreamStack.cs (2)
39
_array
= new StreamAsValueType[size];
98
Array.Resize(ref
_array
, 2 * _array.Length);
18 references to _array
Microsoft.AspNetCore.Server.Kestrel.Core (6)
src\Servers\Kestrel\shared\PooledStreamStack.cs (6)
48
StreamAsValueType[] array =
_array
;
65
StreamAsValueType[] array =
_array
;
81
StreamAsValueType[] array =
_array
;
98
Array.Resize(ref _array, 2 *
_array
.Length);
99
_array
[_size] = item;
106
StreamAsValueType[] array =
_array
;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (12)
PooledStreamStackTests.cs (12)
33
Assert.Equal(1, ((Http2Stream)streams.
_array
[0]).StreamId);
45
Assert.Equal(default, streams.
_array
[0]);
58
Assert.Equal(default, streams.
_array
[0]);
59
Assert.Equal(default, streams.
_array
[1]);
72
Assert.Equal(2, ((Http2Stream)streams.
_array
[0]).StreamId);
73
Assert.Equal(default, streams.
_array
[1]);
89
Assert.Equal(5, streams.
_array
.Length);
90
Assert.Equal(default, streams.
_array
[0]);
91
Assert.Equal(default, streams.
_array
[1]);
92
Assert.Equal(default, streams.
_array
[2]);
93
Assert.Equal(default, streams.
_array
[3]);
94
Assert.Equal(default, streams.
_array
[4]);